iisproxy
iisproxy copied to clipboard
proxy.ashx
I've used your code to build a webhandler (.ashx) that fits my needs perfectly.
I'm searching for a ProxyHost (ForwardProxy) to use with openlayers, as
documented here:
http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost
request like '/proxy.ashx?url=localhost:8080/geoserver/wfs'
are redirected to my intranet server, maintaining POST data.
I add my adapted code as attached.
Thanks a lot
Original issue reported on code.google.com by [email protected] on 1 Oct 2010 at 8:43
Attachments:
same code, but now also querystring parameters are managed
Original comment by [email protected] on 7 Dec 2010 at 10:20
same code, but now also querystring parameters are managed.
Original comment by [email protected] on 21 Mar 2013 at 3:41
Sorry, newbie here. But how do I get this running the reference my
installation of OpenLayers? Do I still need to edit any of the code? (ex.
change the url in string uri = context.Request.QueryString["url"];)?
Original comment by [email protected] on 4 Oct 2013 at 7:28
No need to do nothing in particular. Simply, copy the code inside you asp.net
root folder (where Default.aspx is stored) and the configure OpenLayers to use
it
OpenLayers.ProxyHost = "/host.ashx?url=
hope this helps.
Original comment by [email protected] on 5 Oct 2013 at 4:44