[mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported"

Hallgren Johan Johan.Hallgren at sweco.se
Thu Apr 14 21:25:23 PDT 2011


Many thanks, I will give it a try.

By the way, was I you who created the build package for mapserver?

I have been away for two years and it has really been improved. Now it seems to be much easier to rebuild ms.

Thanks for that and thanks for your assistance again.

Johan
________________________________
Johan Hallgren
Gruppchef
Telefon direkt 023-464 92
Mobil 073-800 64 92
johan.hallgren at sweco.se

Sweco Position AB
Parkgatan 3
Box 1902
791 19 Falun
Telefon 023-464 00
www.sweco.se<http://www.sweco.se>




[cid:image001.png at 01CBFB35.39295680]


[cid:image002.png at 01CBFB35.39295680]Please consider the environment before printing my e-mail.



From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: den 14 april 2011 22:35
To: Hallgren Johan
Cc: mapserver-users at lists.osgeo.org
Subject: 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.Hallgren at sweco.se<mailto:Johan.Hallgren at 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.hallgren at sweco.se<mailto:johan.hallgren at sweco.se>

Sweco Position AB
Parkgatan 3
Box 1902
791 19 Falun
Telefon 023-464 00
www.sweco.se<http://www.sweco.se>




[cid:image001.png at 01CBFB35.39295680]


[cid:image002.png at 01CBFB35.39295680]Please consider the environment before printing my e-mail.


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110415/91af37a1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 181 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110415/91af37a1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 31553 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110415/91af37a1/attachment-0001.png>


More information about the MapServer-users mailing list