cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: login does not pass through the POST request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Jul 2011 00:34:26 +0200 (CEST)

On Mon, 18 Jul 2011, Pourriels wrote:

> with the same result. (it returns the html code of the form, filled with the
> password but not the login)
>
> Do I need the cookies for the first login? I thought it was to access other
> pages afterwards.

Often you need to get the page with the form first, and it will set some
initial cookies or something and then you issue the post with those cookies.

It's all a matter of you tracking down exactly what the browser does and then
make sure curl repeats the same thing.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-19