cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: FTP upload doesn't work with Windows 32 binary?

From: JIM MCNEILL <JIM.MCNEILL_at_holdsworth.co.uk>
Date: Mon, 17 Sep 2001 13:50:11 +0100

You must have a better behaved NT box than me! Here's a dump of what I get
(ALL_PROXY is set):

curl ftp://www.server.com//server/Brochure/ftpdir/ -T freestock.csv -u
nameftp:passftp -U nameproxy:passproxy -vi -l
* Connected to SERVERNAME (191.8.200.125)
> PUT ftp://www.server.com//server/Brochure/ftpdir/freestock.csv HTTP/1.
1
Proxy-authorization: .....................=
Authorization: ......................=
User-Agent: curl/7.8 (win32) libcurl 7.8
Host: www.server.com:21
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 16419

  % Total % Received % Xferd Average Speed Time
Curr.
                                 Dload Upload Total Current Left
Speed
 12 16419 0 0 12 2048 0 66064 0:00:00 0:00:00 0:00:00
0HT
TP/1.1 100 Continue
Server: Microsoft-IIS/4.0
Date: Mon, 17 Sep 2001 12:39:45 GMT

HTTP/1.1 200 OK
Via: 1.1 SERVERNAME
Content-Type: application/octet-stream

100 16419 0 0 100 16419 0 19047 0:00:00 0:00:00 0:00:00
14371

...............File was downloaded and listed!

It may look as if the upload works, but I can confirm with CuteFTP and Web
Folders that it didn't. It looks to me like half a loaf - the file is
uploaded but not stored; the bit that should be doing the storing downloads
the existing file instead. When you got yours to work, did you check that it
wasn't a previous version you were seeing on the server?

Oh - and by the the way, I have tried "-Q -STOR". That doesn't work either.

Cheers
Jim McNeill

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Monday, September 17, 2001 11:07 AM
To: Curl Mailinglist
Subject: Re: FTP upload doesn't work with Windows 32 binary?

On Mon, 17 Sep 2001, JIM MCNEILL wrote:

> I have read the manual page, and as far as I can see I'm not doing
> anything stupid, but I just can't get curl to upload a file at all. No
> matter whether I use the command line or a config file, no matter what
> order I put the parameters in, it's as if it just completely ignores the
> "-T" (or upload-file) parameter. If the upload destination has a trailing
> "/" I get a directory listing, if it's a filename it downloads a file.

I just tried a command line like this on an NT4 box:

  curl ftp://machine -u user:password -T file -vi

It worked fine enough.

> Shame, it's such a lovely product really. Does anyone know of a freebie
> DOS command line utility I can use for this instead of cURL?

What command line did you use? If you use -vi you'll get some additional
info
from the protocol, what did that look like? (edit out sensitive info before
posting)

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Come and see our designs online! Click on over to http://www.holdsworth.co.uk/brochure/webframe.htm 
and browse our design ranges.
 . . . . . 
CAUTION: This email message and accompanying data may contain information 
that is confidential.  The contents are intended for recipient only and are subject 
to the legal notice available at www.holdsworth.co.uk/library/emailfax.html 
 . . . . . 
If you are not the intended recipient, you are notified that any use, dissemination, 
distribution or copying of this message or data is prohibited.  If you have received 
this email message in error, please notify us immediately and erase all copies of 
this message and attachments.  Thank you.
 . . . . . 
This message is attributable to the sender and does not necessarily reflect the view 
of John Holdsworth & Co Ltd or its subsidiaries.
 . . . . . 
Received on 2001-09-17