[MapProxy] Configure external wms that requires basic auth
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Thu Oct 17 12:43:10 PDT 2013
Hi,
The 200 - 3177 feels odd. Is it possible that the line is taken from a server log file and 200 could mean the http code for the result (200 OK) and 3177 the size of the response?
I am sure that I have used MapProxy with https and basic authentication simply by giving the WMS server URL as https://user:passwd@server.com...
I do not understand why it does not work for you. Are you also behind a proxy server?
-Jukka Rahkonen-
karsten wrote:
>
> Yes it definitely is http as I have manually requests to the WMS working,
> however via MapProxy it appears not to be working that way.
>
> I Now tried to sue a proxy PHP that uses curl to send the user and pw to the
> external WMS (I know that basically that script is working as I sued in in a
> different setup)
>
> Now with MapProxy it almost works and I can see requests like this to the wms :
>
> http://geo.myserver.org/proxy.php?layers=images&width=600&version=1.1.1&
> bbox
> =4268292.15725,5251787.80344,4638833.19507,5730276.96684&service=WMS
> &format=
> image%2Fpng&styles=&srs=EPSG%3A31468&request=GetMap&height=775 200
> - 3177
>
> In MapProxy currently still I get no image back, however tracing the error I
> checked and when I paste that url omitting the last part ' 200 - 3177'
> after height=7555 that MapProxy added I indeed get the requested image back .
>
> Now how can I avoid that MapProxy ads the 200 - 3177 in the end of the request
> (as that upsets the external wms service and I get a response 'Ungültiger Wert:
> 775 200 - 3177 Exception by ProxyServlet' ) ? Is there a setting for that to omit. I
> am not even sure what those parameter are at all?
> Any ideas ?
>
> Cheers
> Karsten
>
> >>> From: Rahkonen Jukka <jukka.rahkonen at mmmtike.fi>
>
> Quick question:
> Are you sure it is http and not https?
>
> -Jukka-
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy
More information about the MapProxy
mailing list