cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problem with imagevenue.com

From: Rudolf Martin <rudolf.martin_at_gmx.de>
Date: Thu, 29 Mar 2007 08:59:23 +0200

Hi,
I have tried to upload a picture-file to imagevenue.com several times, without success.

I used following command:

curl -# -F "userfile%5B%5D=@$filename" -F "userfile%5B%5D=" -F "userfile%5B%5D=" -F "userfile%5B%5D=" -F "userfile%5B%5D=" -F "imgcontent=notsafe" -F "MAX_FILE_SIZE=%20" -F "action=1" -F "img_resize=" "http://imagevenue.com/upload.php" -o tmp_file

The progressbar is working and I got some data in the tmp_file. But the links to my uploaded image are missing.

I see two problems:
1. the multipart/form-data-field contains 5 input-tags with the same name <input name="userfile[]" type="file">

2. the multipart/form-data is nested in another form, <form name="hostn" action="/host.php" method="post">

I don't know how to handle this.
Any suggestions are welcome.

Rudolf

                

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Received on 2007-03-29