Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #5631
| From | Knorpi <alpineblaster@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | HTTP traffic over a custom proxy server? |
| Date | 2011-06-24 03:24 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <60701286-eb78-421a-8d54-b48762480994@glegroupsg2000goo.googlegroups.com> (permalink) |
Hi, I would like to setup a server "myserver" that acts as a proxy for its clients. The clients pass the url of the web page they want in a query string: - client sends a HTTP request: http://myserver?url=www.foreignurl.com&par2=val1 - Servlet on myserver extracts url from query string: www.foreignurl.com - Servlet sends HTTP request to other server with query string: http://www.foreignurl.com?par1=val1 - Servlet renders complete response from other server into a String "content" - Servlet changes every link in the content to point to myserver so that all links are accessed the same way - Servlet sends response to client The most important part would be to change all links in the response. Can you give me some hints how to do this? Thanks Magnus
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
HTTP traffic over a custom proxy server? Knorpi <alpineblaster@googlemail.com> - 2011-06-24 03:24 -0700 Re: HTTP traffic over a custom proxy server? Tom Anderson <twic@urchin.earth.li> - 2011-06-25 23:49 +0100 Re: HTTP traffic over a custom proxy server? Roedy Green <see_website@mindprod.com.invalid> - 2011-06-25 16:08 -0700 Re: HTTP traffic over a custom proxy server? Esmond Pitt <esmond.pitt@bigpond.com> - 2011-06-27 20:28 +1000 Re: HTTP traffic over a custom proxy server? Silvio <silvio@moc.com> - 2011-06-28 09:22 +0200
csiph-web