Skip to content

Commit

Permalink
Doc: complementary info regarding GDAL_HTTP_HEADER_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Mar 28, 2024
1 parent 98b61ea commit a6c3b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/source/user/configoptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,8 @@ Networking options
:choices: <filename>
:since: 2.3

Filename of a text file with "key: value" HTTP headers.
Filename of a text file with "key: value" HTTP headers. The content of the
file is not cached, and thus it is read again before issuing each HTTP request.

- .. config:: GDAL_HTTP_CONNECTTIMEOUT
:choices: <seconds>
Expand Down
3 changes: 2 additions & 1 deletion port/cpl_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,8 @@ int CPLHTTPPopFetchCallback(void)
* <li>HEADERS=val, where val is an extra header to use when getting a web page.
* For example "Accept: application/x-ogcwkt"</li>
* <li>HEADER_FILE=filename: filename of a text file with "key: value" headers.
* (GDAL >= 2.2)</li>
* The content of the file is not cached, and thus it is read again before
* issuing each HTTP request. (GDAL >= 2.2)</li>
* <li>HTTPAUTH=[BASIC/NTLM/NEGOTIATE/ANY/ANYSAFE/BEARER] to specify an
* authentication scheme to use.</li>
* <li>USERPWD=userid:password to specify a user and password for
Expand Down

0 comments on commit a6c3b04

Please sign in to comment.