cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Posting with ----data-urlencode

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 13 Sep 2010 14:01:47 -0700

On Mon, Sep 13, 2010 at 07:44:12PM +0100, Kyle Welsh wrote:
> Hey, having problems with the usage of --data-urlencode <data>
>
> By statement is:
>
> curl -v -s -b /home/<user>/cookies.txt -F Student_ID=262144  -F
> file=@$Dir/user.jpeg   -F name=$name ---data-urlencode bio="String of
> words" "http://www.example.com/takeuser.php"
>
> Any corrections and/or optimisations greatly appreciated.

You can't do both a ---data-urlencode and a -F post in the same request.
The former does a application/x-www-form-urlencoded post while the latter
does a multipart/form-data post.

>>> Dan
-------------------------------------------------------------------
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 2010-09-13