cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --stderr option when uploading / double space

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Jun 2001 10:31:01 +0200 (MET DST)

On Tue, 19 Jun 2001, Mettgut Jamalla wrote:

> I'm making a http-Upload (POST):
> curl -F "FILE1=@localfilename" -o "upload.result" --stderr "upload.status"
> "http://xxx.xxx.xxx.xxx/upload/UploadExt.dll"
>
> No 'upload.status'-file is written.

... and the progress meter is shown on your screen or is it gone?

I really can't see why this doesn't work. Would you be able to debug this a
little for us?

> curl -F "FILE1=@c:/examplepath/another file with a double space" -o
> "upload.result" "http://xxx.xxx.xxx.xxx/upload/UploadExt.dll"
> doesn't work
> cURL POSTs something like that:
>
> POST /upload/UploadExt.dll HTTP/1.1
> User-Agent: curl/7.8 (win32) libcurl 7.8 (OpenSSL 0.9.6)
> Content-Type: multipart/form-data; boundary=curlQk0MZq+as7qzKjqSTWt4U4VPgjr
> [SCHNIPP]
> --curlQk0MZq+as7qzKjqSTWt4U4VPgjr
> Content-Disposition: form-data; name="FILE1";
> filename="c:/examplepath/another file with a double space"
> Content-Type: text/plain [File wasn't found by client]
> --curlQk0MZq+as7qzKjqSTWt4U4VPgjr

Are you saying that it works if you use a file with a single space in it, but
not with a double space?

Could it be that windows don't support that kind of file names?

I can't see that libcurl treats file names different, no matter what amount
of white spaces you use in the name!

> Another character that makes trouble is: ,
> filename="1,2,3 file" doesn't work

No, and it is documented. The comma is a separator for several file names, as
when you want to include several files at once.

> Sorry if my previous posts are impolite (may be this one as well), but
> english is not my mother language.

No worries, I didn't find them offensive and I know all about not having
english as native language...

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-06-20