curl-users
Re: Web Login
Date: Sat, 31 May 2008 11:57:18 +0200 (CEST)
On Thu, 29 May 2008, Ralph Mitchell wrote:
>> First, servers mostly use cookies to track the logged-in status of the
>> client, so you will need to capture the cookies you receive in the
>> responses. Then, many sites also set a special cookie on the login page (to
>> make sure you got there through their login page) so you should make a
>> habit of first getting the login-form page to capture the cookies set
>> there.
>
> I've run into a couple of sites that set cookies on the home page, so I had
> to start at the home page and "click" though the login link. So, you can't
> always jump direct to the login page.
Right, but how do you suggest we phrase that in the parapraph above?
Theoretically I bet there are sites that change or set cookies along the way
as well so you basically have to follow the path a long way to get the proper
cookie setup in order to login.
-- / daniel.haxx.seReceived on 2008-05-31