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 23:18:15 +0200 (CEST)

On Sat, 23 Aug 2008, lakk_esbjrn wrote:

> Here are some elements of the source-code of this reply
>
> <form id="postform" method="post"
> action="./posting.php?mode=reply&amp;f=24&amp;sid=7b7ba2f32e8dca1e36e626b301f71401&amp;t=55"
> enctype="multipart/form-data">

> curl -A "Mozilla/5.0" -b "Cookie1.txt" -d "message=Hello&post=Envoyer"
> "http://www.nameforum.org/phpBB3/posting.php?mode=reply&f=24&t=55"

That's the wrong URL as clearly the <form> above mentions a long sid=7b7ba2...
etc as well.

> But the response say that I need to register if I want to post a reply. I
> tried with -F instead of -d but it changes nothing.

The <form> says multipart/form-data which means you MUST use -F.

-- 
  / 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