cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Newbie post question

From: Richard Atterer <richard_at_2008.atterer.net>
Date: Tue, 11 Mar 2008 14:53:37 +0100

On Tue, Mar 11, 2008 at 02:21:38PM +0100, Fredrik Gustafsson wrote:
> But now I'm stuck after gett this strange this from livehttp-headers
> when trying to upload an image:
>
> POST /Gallery2/UploadFile.aspx?Action=savenew
> -----------------------------89686735721334176922016637833
>
> Content-Disposition: form-data; name="Cat"
>
> 732894
[...]

This looks like a POST with multipart/form-data content, triggered by HTML
code like <form enctype="multipart/form-data">.

The format is described in RFC 1867, but I think libcurl can build the
request body for you - have a look at
http://curl.haxx.se/libcurl/c/curl_formadd.html

HTH,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key: 888354F7
  | \/¯|  http://atterer.net  |  08A9 7B7D 3D13 3EF2 3D25  D157 79E6 F6DC 8883 54F7
  ¯ '` ¯
Received on 2008-03-11