Sounds like you want to write a proxy server in asp.net. Some quick googling led me here:
http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx Maybe that's useful? -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Steve Welborn Sent: Wednesday, January 16, 2008 8:05 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Relaying a page request and viewing results in Asp.Net I am working on a test project that seemed simple enough at first but now I'm stuck. Was hoping someone here has had experience with this at one point. 1. I want to be able to go to a site (Default.aspx) and enter in a url, lets say http://www.google.com. 2. It will then query another page (relay.aspx) and pass in the url. 3. The relay.aspx page will then do a WebRequest for that page and return the full source. 4. Once returned the page will do a Response.Write of that full source and be able to view that page. It works fine when I do just a regular WebRequest and pull the source back. But the links will need to go back through this same channel so that no blockage will occur (if they happen to be behind a proxy or firewall that would prevent that page coming up). Also theres javascript and css that I can see are not being implemented. My question pertains to getting the results back from the webrequest and have the results run exactly as if they would of went to the page itself. Is WebRequest the way to go with this or should I use SOAP or anything else I havent thought of? I was thinking of parsing the results and replacing anything with 'http' with 'default.aspx?url=http..' so that it will query the page again and seem seemless..however, passworded sites would still be affected I think. Anyone have any experience with this? Thanks ________________________________________________________________________ ____________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com