Opened 3 months ago

Closed 3 months 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
Cc:

Description

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 (http://www.gdal.org/frmt_wms.html)

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 Changed 3 months ago by TobWen

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

comment:2 Changed 3 months ago by Even Rouault

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.