473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Redirecting HTTP request

arc
Here's my requirement:

When a desktop application (smart client) makes a request to our ASP.NET
server, the request has to be redirected to a 3rd party provider.

AND

Option A - The 3rd party provider should be able to deliver the information
back to the smart client directly
OR
Option B - The 3rd party provider should be able to deliver the information
back to our server which in turn is sent back to the smart client.

If its Option A, I believe we have to manipulate the HTTP request so that
the 3rd party provider understands the information would be sent to the
smart client instead of giving it back to our server. Can we use something
like HTTPHandler or HTTPModule to do this? How exactly?

If its Option B, I believe we have to maintain the session as it arrives
from the client and be able to deliver back to the client when 3rd party
provider responds.
Is it possible to maintain the long standing session in IIS while the
request is re-directed? How to do it?

Greatly appreciate your inputs!

Thanks
Arc
Nov 23 '05 #1
1 1017
arc wrote:
Here's my requirement:

When a desktop application (smart client) makes a request to our
ASP.NET server, the request has to be redirected to a 3rd party
provider.

AND

Option A - The 3rd party provider should be able to deliver the
information back to the smart client directly
OR
Option B - The 3rd party provider should be able to deliver the
information back to our server which in turn is sent back to the
smart client.

If its Option A, I believe we have to manipulate the HTTP request so
that the 3rd party provider understands the information would be sent
to the smart client instead of giving it back to our server. Can we
use something like HTTPHandler or HTTPModule to do this? How exactly?
No. A redirect informs the client to look for the requested resource
somewhere else. Thus, the client knows to ask the 3rd party site if
redirected.

Client --GET--> YourSite
Client <--302-- YourSite
Client --GET--> 3rdParty
Client <--200-- 3rdParty

If its Option B, I believe we have to maintain the session as it
arrives from the client and be able to deliver back to the client
when 3rd party provider responds.
Is it possible to maintain the long standing session in IIS while the
request is re-directed? How to do it?


Option B means you send a new request to the 3rd party site in order to
produce the response for the client:

Client --GET--> YourSite
void Page_Load() { // or any other method
YourSite --GET--> 3rdParty
YourSite <--200-- 3rdParty
}
Client <--200-- YourSite
Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: paul koelle | last post by:
Hi list, My ultimate goal is to have a small HTTP proxy which is able to show a message specific to clients name/ip/status then handle the original request normally either by redirecting the...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
9
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
4
by: damiensawyer | last post by:
Hi, I'm trying to do something in global.asax that I would have thought to be quite simple. Basically, any request at all should get sent to another page. I actually got the code below from a...
1
by: barunva | last post by:
Hi All, Can you please answer my following question: I have two web servers; one is based on Linux Operating System and the second one is based on AIX OS, and both are geographically apart,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.