curl-users
Re: Post in a forum
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 24 Aug 2008 23:28:12 +0200 (CEST)
Date: Sun, 24 Aug 2008 23:28:12 +0200 (CEST)
On Sun, 24 Aug 2008, lakk_esbjrn wrote:
> So as you said, I use the -F option to post this reply but.... does not
> work... and AbCd is strangely disconnected a few minutes after (10 minutes
> approximatively)
>
> /curl -b "Cookie1.txt" -F "message=Hello&post=Envoyer"
> "http://www.NameForum.org/phpBB3/posting.php?mode=reply&f=24&sid=a442603482c15280329f8356306ceb70&t=55"/
This is the wrong -F syntax, see the manual for details.
Also, you need to extract that 'sid' number (or possibly the entire POST URL)
from the HTML of your previous HTML fetch you cannot re-use one used in a
previous session.
-- / 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.htmlReceived on 2008-08-24