cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Multipart Forms and File Downloads

From: schawk <schawk_at_ms7.hinet.net>
Date: Tue, 25 Oct 2005 23:16:27 +0800

Dear All
    I am a Chinese. I will thank every developer of cURL. I use cURL to send
more message to people in China mainland to alarm the serious bird flu or
else. Because the China goverment always blocks message in internet like
SARS. Media, internet, TV, and news block make more people die.
    Thanks again.

schawk

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "the curl tool" <curl-users_at_cool.haxx.se>
Sent: Tuesday, October 25, 2005 9:16 PM
Subject: Re: Multipart Forms and File Downloads

On Tue, 25 Oct 2005, Huntress Gary B NPRI wrote:

> If I encode the form parameters normally and submit them using -d
> "STAGROW=EXISTINGFILE&...." the server seems to reply that I have not
> checked any boxes.

Use LiveHTTPHeaders and see what your browser sends, then send that same
data
with curl.

> Can curl support multiple file downloads from multipart forms?

There's nothing in the HTTP standards that offers "multiple file downloads"
AFAIK. You need to tell us more details on exactly how this is done to
enable
us to answer this.

> If so, do I submit my form data using -d ?

If the form is a regular (non-multipart) form, then -d is your weapon.

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-10-25