RE: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Hello Tamas It slowly moving forward with my proxy-login problem. I can't find a way to specify login-domain. I tried with: wms_proxy_username domain\foo and wms_proxy_username domain\\foo But no one gives the feeling that it worked. Du you have any better ideas? /Johan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Tamas again, One more thing. I tried the process monitor to see if there was different libmap.dll when used drawmap.exe versus shp2img.exe. And what I could see it was just the same libmap.dll (same path). I still have a feeling that the error I have seen (CURL proxy not supported) isn't the actual problem. It indicates a problem but what I had to specify when I wrote another internet call thru the same proxy was the login-domain. I couldn't just use urs/pwd, I had to send domain also. /Johan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Never ending storry:) Sorry to disturb you again. I did your changes (echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH $(OUTPUT_DIR)\mapserver.opt), no change. Still the same error. As I mentioned before, the wms call works with shp2img, but gives the CURL error with drawmap. I used wireshark to monitor the network traffic and I did not see any difference. Actually it seemed as the png-image was returned over the network in both cases, but did not return as file with drawmap. Any other ideas? Best Regards Johan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
2011/4/18 Hallgren Johan johan.hallg...@sweco.se Never ending storryJ Sorry to disturb you again. I did your changes (echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH $(OUTPUT_DIR)\mapserver.opt), no change. Still the same error. As I mentioned before, the *wms call works with shp2img*, but gives the CURL error with drawmap. Seems like libmap.dll is different when shpimg and drawmap is used. You may also use the process monitorhttp://technet.microsoft.com/en-us/sysinternals/bb896645to see where the dll-s are coming from actually. BTW: I've noticed that MapServer 5-6 requires -DCURLOPT_PROXYAUTH but 6-0 requires -DUSE_CURLOPT_PROXYAUTH. Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs http://vbkto.dyndns.org/sdk/ I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: *echo CURL=-DUSE_CURL $(OUTPUT_DIR)\mapserver.opt *with *echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH $(OUTPUT_DIR)\mapserver.opt* in the Makefile. I hope that will help. Best regards, Tamas 2011/4/13 Hallgren Johan johan.hallg...@sweco.se Hello I have a strange problem… I should use MapServer with Mapscript to call a WMS server as a client. I created a LAYER definition and after some struggle it went thru, I get my map. I used the *shp2img* command to test the mapfile. Next step was to test the mapfile with *drawmap* so the mapscript implementation was tested and now an error showed up. “CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7” I expected that this error should show up already in the shp2img-test, but there it worked fine. Anyone having a clue what’s wrong? Here is the error: - Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_p roxy_auth_type setting ignored. at OSGeo.MapServer.mapObj.draw() at DrawMap.Main(String[] args) GDAL: GDALDeregister_GTiff() called. --- … and here is the layer definition. --- LAYER NAME 'WMS-Oversikt' TYPE RASTER STATUS ON CONNECTION 'http://maps.metria.se/geoserver/wms?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:2400' 'wms_name' 'anyname' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_auth_type' 'basic' 'wms_auth_username' 'xxx' 'wms_auth_password' 'yyy' 'wms_proxy_type' 'http' 'wms_proxy_host' '147.44.134.17' 'wms_proxy_port' '80''wms_proxy_auth_type' 'basic' 'wms_proxy_username' 'zzz' 'wms_proxy_password' 'yyy' END END -- Regards Johan -- *Johan Hallgren* Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallg...@sweco.se *Sweco Position AB* Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se Please consider the environment before printing my e-mail. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users image002.pngimage001.png___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Fwd: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
I need to correct myself and you'll require to use the following setting instead: *echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH $(OUTPUT_DIR)\mapserver.opt * Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs http://vbkto.dyndns.org/sdk/ I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: *echo CURL=-DUSE_CURL $(OUTPUT_DIR)\mapserver.opt *with *echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH $(OUTPUT_DIR)\mapserver.opt* in the Makefile. I hope that will help. Best regards, Tamas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported
Hello I have a strange problem... I should use MapServer with Mapscript to call a WMS server as a client. I created a LAYER definition and after some struggle it went thru, I get my map. I used the shp2img command to test the mapfile. Next step was to test the mapfile with drawmap so the mapscript implementation was tested and now an error showed up. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 I expected that this error should show up already in the shp2img-test, but there it worked fine. Anyone having a clue what's wrong? Here is the error: - Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_p roxy_auth_type setting ignored. at OSGeo.MapServer.mapObj.draw() at DrawMap.Main(String[] args) GDAL: GDALDeregister_GTiff() called. --- ... and here is the layer definition. --- LAYER NAME 'WMS-Oversikt' TYPE RASTER STATUS ON CONNECTION 'http://maps.metria.se/geoserver/wms?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:2400' 'wms_name' 'anyname' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_auth_type' 'basic' 'wms_auth_username' 'xxx' 'wms_auth_password' 'yyy' 'wms_proxy_type' 'http' 'wms_proxy_host' '147.44.134.17' 'wms_proxy_port' '80''wms_proxy_auth_type' 'basic' 'wms_proxy_username' 'zzz' 'wms_proxy_password' 'yyy' END END -- Regards Johan Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallg...@sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.sehttp://www.sweco.se [cid:image001.png@01CBF9EC.EB232C20] [cid:image002.png@01CBF9EC.EB232C20]Please consider the environment before printing my e-mail. inline: image001.pnginline: image002.png___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users