Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy.ashx #8

Open
GoogleCodeExporter opened this issue Mar 26, 2016 · 4 comments
Open

proxy.ashx #8

GoogleCodeExporter opened this issue Mar 26, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 diegogu...@gmail.com on 1 Oct 2010 at 8:43

Attachments:

@GoogleCodeExporter
Copy link
Author

same code, but now also querystring parameters are managed

Original comment by diegogu...@gmail.com on 7 Dec 2010 at 10:20

@GoogleCodeExporter
Copy link
Author

same code, but now also querystring parameters are managed.

Original comment by diegogu...@gmail.com on 21 Mar 2013 at 3:41

@GoogleCodeExporter
Copy link
Author

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 BrianJBa...@gmail.com on 4 Oct 2013 at 7:28

@GoogleCodeExporter
Copy link
Author

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 diegogu...@gmail.com on 5 Oct 2013 at 4:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant