curl-users
Re: Problem with imagevenue.com
Date: Fri, 30 Mar 2007 16:46:19 +0200
* Daniel Stenberg <daniel_at_haxx.se> [070329 09:13]:
> On Thu, 29 Mar 2007, Rudolf Martin wrote:
>
> >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.
>
> It'll take you less than a minute to figure out exactly what names/fields
> to use once you've installed LiveHTTPHeaders and tried this operation
> manually.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Thank you for your fast answer.
I installed iceweasel and livehttpheaders.
While checking the headers I found only the same names/fields as before.
I added user agent and filenames and filetypes. The upload works, but
I get no proper "File Hosts result" from Imagevenue.
I think the HTML-code that Imagevenue refers is corrupt.
Any ideas?
My commandline:
curl -# -A 'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' -F
"userfile%5B%5D=@33.jpg;filename=33.jpg;type=image/jpg" -F
"userfile%5B%5D=;filename=" -F "userfile%5B%5D=;filename=" -F
"userfile%5B%5D=;filename=" -F "userfile%5B%5D=;filename=" -F
"imgcontent=safe" -F "MAX_FILE_SIZE=" -F "action=1" -F "img_resize="
"http://imagevenue.com/upload.php" -o tmp_file
Rudolf
-- Linux, the choice | of a GNU generation -o) | Kernel 2.6.17 /\ | on a AMD Athlon _\_v |Received on 2007-03-30