Re: Posting to another server and end up there?
From: Steven Burn (pvt_at_noyb.com)
Date: 09/22/04
- Next message: Julia: "Problem passing encrypted string in url"
- Previous message: Danny: "Re: Need help with this script"
- In reply to: John Dalberg: "Re: Posting to another server and end up there?"
- Next in thread: John Dalberg: "Re: Posting to another server and end up there?"
- Reply: John Dalberg: "Re: Posting to another server and end up there?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 17:37:41 +0100
> AFAIK, response.redirect tells the browser to go to a certain url and get
> it so basically I am starting at the remote login page, which I do not
> want. What needs to happen is the browser needs to think it already logged
> in on the other server.
Am I right in thinking, a cookie is set upon successful authorisation?, if
so, this may be where the problem is as it could quite possibly be a case of
the cookie being tied to your first (login) domain, instead of the domain
you are querying/wanting to go to.
If not, what does the second URL usually use? (cookies, sessions etc?)
-- Regards Steven Burn Ur I.T. Mate Group www.it-mate.co.uk Keeping it FREE! "John Dalberg" <john_dd@hotmail.com> wrote in message news:mtkusmbnpnve$.hb5cu4ahtkwn.dlg@40tude.net... > On Tue, 21 Sep 2004 14:37:32 -0700, Mark Schupp wrote: > > > Ok, Lets back up a step. A lot of the background info go trimmed and needs > > to be re-stated in your next response. > > > > IIRC: > > > > You have a form on your site that is a copy of the login form for another > > site. > > > > You want to have data from that form posted to another server for user > > authentication. > > > > Then you want to direct the user to another URL. I thought I understood this > > URL to be where the user would be taken if they had used the login form on > > the other site in the first place. If that is the case then just post your > > form to the same place that the form on the other site is posted to. If that > > is not the case, please clarify what you need. > > Yes that's basically what I want to do but the browser still shows the > initial url. > > I am doing the post to the second location using System.Net.HttpWebRequest > and I get the proper response and I then flush the current > System.Web.httpResponse and pump the response from HttpWebResponse into the > Current Response object. I am not sure if this is the proper way to do it.. > It's like cheating because I changed the contents of the response object > but the client, the browser, is not aware now that the response is from the > other url. It thinks the response came from the initial form page. > > AFAIK, response.redirect tells the browser to go to a certain url and get > it so basically I am starting at the remote login page, which I do not > want. What needs to happen is the browser needs to think it already logged > in on the other server. > > I might just be missing an obvious fact but I am not seeing it. > > John
- Next message: Julia: "Problem passing encrypted string in url"
- Previous message: Danny: "Re: Need help with this script"
- In reply to: John Dalberg: "Re: Posting to another server and end up there?"
- Next in thread: John Dalberg: "Re: Posting to another server and end up there?"
- Reply: John Dalberg: "Re: Posting to another server and end up there?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|