cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Post in a forum

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 23 Aug 2008 13:07:36 +0200 (CEST)

On Sat, 23 Aug 2008, lakk_esbjrn wrote:

Please don't top-post!

> where the login source code is the following :

Uh, that didn't even contain the <form> tag...

> Username and Password are very simple and the same : only alphabetical
> characters. As you say, I have to first keep the cookie which contains
> the collected data of the authentification :
>
> /curl -A "Mozilla/5.0" -d "username=AbCd&password=AbCd=Connexion" -c
> "Cookie1.txt" "http://www.nameforum.org/phpBB3/index.php" /

I doubt that is the correct URL to login to. The <form> tag would show if I'm
right.

> But It gives me the source code of the login page... The cookie
> Cookie1.txt contains :
>
> #HttpOnly_.nameforum.org TRUE / FALSE 1251016841

httponly cookies weren't supported until curl 7.18.1 so I hope you have at
least that version!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-23