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.

So:

  1. User clicks hyperlink which is for www.a.com
  2. www.a.com receives request, checks whatever it has to, transfers serving file to www.b.com
  3. 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.

Thanks!

Answers


Your best bet is to do a Response.Redirect with the url to the proper server.


Need Your Help

c - seeing random numbers in my loop after the array length has been reached?

c arrays for-loop indexing

I am just creating a simple array in C and outputting the result to a console to see what the content of the array is.

passing variables with inheritance

python python-2.7

I'm trying to practice OOP by making a class selection program