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.
So:
- User clicks hyperlink which is for http://www.a.com
- http://www.a.com receives request, checks whatever it has to, transfers serving file to http://www.b.com
- Client now receives content from http://www.b.com, not http://www.a.com
I basically do not want the file transfer to occur through http://www.a.com.
Thanks!
Your best bet is to do a Response.Redirect with the url to the proper server.