This totally depends on how the site is coded.

One approach is to try and access a page that is protected by the
login and see what happens.

But again, how you detect whether access has been granted depends on
how the site is coded.

Try with a browser an see what happens.


On 05/03/07, Dan Bezdek <[EMAIL PROTECTED]> wrote:
Hi Everyone,

I am new to HttpClient, and I can't find any source on the proper way of 
authenticating when I am trying to login to a site that has a login form.

Basically, I can login using post method, but I can't find any source that 
tells me what response code should be returned in order for me to be sure that 
the authentication has succeeded.  I don't really care what the server does 
after authentication (for exampale if I get redirected or not), all I want to 
know is that I am logged in.  Someone suggested that the standard way is to use 
the Head method first to make sure authentication would succeed.  In any case, 
could someone please tell me what the common way of doing the authentication 
is?  I don't need details, just a step-by-step outline of what to do and what 
response code I should expect.

I really appreciate your help.

Thanks,
Dan Bezdek


---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to