cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Posting with ----data-urlencode

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 13 Sep 2010 22:46:48 +0200 (CEST)

On Mon, 13 Sep 2010, 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"

You cannot mix --data-urlencode (that uses two dashes and nothing else) with
-F. They build do different data chunks to send with a POST. Make up your
mind, do you want a multipart formpost (-F) or a "regular" one
(-d/--data/--data-urlencode)?

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