473,503 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 19 '05 #1
1 1113
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 19 '05 #2

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

Similar topics

3
4787
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...
2
3105
by: Robert Oschler | last post by:
I am working on a PHP 4 app that interacts with an external authorization server. The external server does "third-party" authorization of users. So I do the following: 1) Each of my PHP scripts...
1
1023
by: arc | last post by:
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...
8
5762
by: Morpheus | last post by:
I am trying to test a function that outputs text to the standard output, presumably using a cout call. I do not have access to the source, but need to test the output. Is this possible? I can...
41
3182
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
2321
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...
0
1147
by: Anup Daware | last post by:
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I...
4
2790
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
3754
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
7087
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
7281
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,...
1
6993
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
7462
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...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.