<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Morgan,</p>
<p>The right name is <span class="highlighted">GDAL_HTTP_NETRC</span>
:
<a class="moz-txt-link-freetext" href="https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList">https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList</a></p>
<p>Even<br>
</p>
<p>GDAL_HTTP_NETRC<br>
</p>
<div class="moz-cite-prefix">Le 12/03/2023 à 15:49, Morgan Kerle a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:b15f8c46-e307-c681-0bac-c9d1504769f5@gmail.com">I am
trying to use the /vsicurl/ file hander to access a remote tiff
file using basic auth. Is it possible to provide a alternate
location
<br>
<br>
for a .netrc file via the Python bindings? I have attempted to use
SetConfigOption("CPL_CURL_NETRC_FILE" "abs/file/path/to/.netrc").
<br>
<br>
This appears to correctly set the CURL_NETRC_FILE option, as CURL
debugging output shows "Couldn't find host
data.lpdaac.earthdatacloud.nasa.gov in the (nil) file; using
defaults". However, it appears the file is not found / accessible
by libcurl.
<br>
<br>
Any suggestions as to why this may be the case? I have already
confirmed that the file exists and is accessible, and running CURL
with the same parameters in bash works fine.
<br>
<br>
Regards,
<br>
<br>
Morgan
<br>
<br>
_______________________________________________
<br>
gdal-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>