Opened 6 years ago

Closed 6 years ago

#6825 closed defect (fixed)

WMS: GDAL_HTTP_USERAGENT isn't taken care of

Reported by: TobWen Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 2.1.3
Severity: major Keywords: wms useragent


I've set GDAL_HTTP_USERAGENT as environment variable (tested with or without export).

When downloading an image via GDAL, the default useragent gets used: GDAL WMS driver (

Expected is the one set in the environment variable GDAL_HTTP_USERAGENT.

Note: GetFeatureInfo (f.e. queried by gdallocationinfo) uses the correct useragent.

Change History (2)

comment:1 by TobWen, 6 years ago

Work-Around: sed -i "\$i\ \ <UserAgent>${GDAL_HTTP_USERAGENT}</UserAgent>" wms.xml

comment:2 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 37433:

WMS: honour GDAL_HTTP_USERAGENT config option when it is set and <UserAgent> is missing (fixes #6825)

Note: See TracTickets for help on using tickets.