cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with imagevenue.com - SOLVED

From: Rudolf Martin <rudolf.martin_at_gmx.de>
Date: Sat, 14 Apr 2007 18:09:14 +0200

* Rudolf Martin <rudolf.martin_at_gmx.de> [070410 20:56]:
> * Daniel Stenberg <daniel_at_haxx.se> [070406 12:35]:
> > >curl -# -A 'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' -F
> > >"userfile%5B%5D=@33.jpg;filename=33.jpg;type=image/jpeg"
...

After hours of try and error I found a working solution.

The problem was not the form-data, it was the URL-encoding.

In my first attempts I used the URL-encoding with %.., with no success.

Now I send the data without encoding and it works.

curl -# -A 'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' -F
"userfile[]=@31.jpg;type=image/jpeg" -F "userfile[]=" -F "userfile[]="
-F "userfile[]=" -F "userfile[]=" -F "imgcontent=safe" -F
"MAX_FILE_SIZE= " -F "action=1" -F "img_resize="
"http://imagevenue.com/upload.php" -o tmp_file

In the manual I read:
The data *must* be properly URL encoded.

Now I'm a bit confused.

Rudolf

-- 
                  L I N U X       .~.
                 The  Choice      /V\
                  of a  GNU      /( )\
                 Generation      ^^-^^
Received on 2007-04-14