Request transfered to different ASP.NET website (different domain, server etc)
If I have a Web Server A which receives a request for a page/resource and I want to transfer the processing of that request to a different web server (B), is this possible in the ASP.NET web forms world?
I'm asking because if a user wants to click a page that serves up files, I want to analyse the http request and pick the closest server to them to serve up the file.
- User clicks hyperlink which is for www.a.com
- www.a.com receives request, checks whatever it has to, transfers serving file to www.b.com
- Client now receives content from www.b.com, not www.a.com
I basically do not want the file transfer to occur through www.a.com.
Your best bet is to do a Response.Redirect with the url to the proper server.