Opened 8 years ago
Closed 8 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 |
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.
Note:
See TracTickets
for help on using tickets.
Work-Around:
sed -i "\$i\ \ <UserAgent>${GDAL_HTTP_USERAGENT}</UserAgent>" wms.xml