Re: Posting to another server and end up there?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Burn (pvt_at_noyb.com)
Date: 09/22/04


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


Relevant Pages

  • Re: Help trying to login to myspace programatically in vb.net
    ... 'Dim myspacecookies As New Net.CookieContainer ... you should get the login page from a config file. ... Dim response As System.Net.WebResponse = Nothing ... ' You need to capture the cookies at this point and use ...
    (microsoft.public.dotnet.general)
  • Re: Getting Fox News to work with Firefox
    ... CNN or Fox. ... from them if their Website wouldn't support my choice of Web browser. ... Their response: An on-line application form by e-mail pointing to their ...
    (Fedora)
  • Re: html servlet flow
    ... A browsers' request is always an absolute path, ... Imagine for example, that the browser requests for the url '/random', and the webserver recognizes this as a special address which doesn't actually point to a file, but instead indicates that the server should generate a random 32-bit integer and send its decimal string representation as a response. ...
    (comp.lang.java.programmer)
  • Re: Getting Fox News to work with Firefox
    ... from them if their Website wouldn't support my choice of Web browser. ... Their response: An on-line application form by e-mail pointing to their ... Citibank is not the only credit card company in town, ... I'll use Konqueror as well when it suits what I ...
    (Fedora)
  • Re: Getting Fox News to work with Firefox
    ... from them if their Website wouldn't support my choice of Web browser. ... Their response: An on-line application form by e-mail pointing to their ... Citibank is not the only credit card company in town, ...
    (Fedora)