id summary reporter owner description type status priority milestone component version severity resolution keywords cc 3464 gdal_translate cannot download from WMS interface at geoportal.cuzk.cz voland nowakpl "There is a WMS service in Czech Republic. It can be configured the following way: {{{ 1.3.0 http://geoportal.cuzk.cz/wmsdata13/RASZM10/wms.asp?SID=& EPSG:32633 image/png GR_ZM10 540000 545000 5608000 5614000 2500 3000 /cache 1 1 500 500 }}} It can be run with the following command: {{{ gdal_translate -of ENVI wms.xml test.envi }}} The very first URL generated by gdal_translate cannot be downloaded: {{{ Input file size is 2500, 3000 0ERROR 1: GDALWMS: Unable to download block 0, 0. URL: http://geoportal.cuzk.cz/wmsdata13/RASZM10/wms.asp?SID=&request=GetMap&version=1.3.0&layers=GR_ZM10&styles=&crs=EPSG:32633&format=image/png&width=500&height=500&bbox=540000.00000000,5613000.00000000,541000.00000000,5614000.00000000 HTTP status code: 200, error: (null). ERROR 1: IReadBlock failed at X offset 0, Y offset 0 ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0 }}} But if opened in Firefox, this URL is downloaded immediately. It is possible that gdal_translate is missing something in HTTP Header like user agent, session ID or something that allows WMS server to check if it is a web browser or other piece of software. " defect closed normal 1.8.0 GDAL_Raster unspecified normal fixed WMS useragent warmerdam