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

Writing a SQL file from Perl

sql perl

I am a complete newbie to Perl, with PHP coding experience and I put together this Perl script to read a fairly big datafile with no EOL characters and create a SQL file with INSERT statements. My

NSURL's parameterString confusion with use of ';' vs '&'

cocoa cocoa-touch url parameters nsurl

I'd like to use -[NSURL parameterString] to parse out the parameters of a URL I've been passed. It says URL must conform to RFC 1808 but now wondering if ours do?!? We use something like:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.