cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash of command line tool "curl.exe" with not so bogus parameters

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 19 Jan 2005 15:47:04 +0100 (CET)

On Wed, 19 Jan 2005, Philippe HAMEAU wrote:

> I'm currently working with libcurl using mingw : I'm trying to make an
> FTP-upload client, but i ran into problems using the example "ftpupload.c" :
> I keep getting a CURLE_PARTIAL_FILE (18).

That sounds like a weird server or something. What libcurl version is this?

> As i am using the dll, I have reused the read callback function of
> "httpput.c" but it does not work any better. I have to look deeper into it,
> but any help would be appreciated.

It helps if you show us a protocol dump made with --trace-ascii.

> Moreover, as I was trying to understand how POSTQUOTEs work, I read the
> code and tried the following commandline :

> C:\temp>curl --verbose --upload-file c:\temp\curl.exe +Q "CWD /top"
> ftp://127.0.0.1:9021/youpi.exe

It should be -Q "+CWD /top". All commands line options start with a dash.

*BUT* using CWD like this will most likely confuse curl and you won't succeed
with what you're trying. Use a proper URL instead.

> * Could not resolve host: +Q; Host not found

Because it doesn't start with a dash, it is treated as a URL...

> * Could not resolve host: CWD ; Host not found

... and this too.

> And finally the program crashes with a READ address violation.

The command line tool?

> I apologize for giving you this bug (?) by email, but I have no access to
> Internet here, only an email gateway

Email is perfectly fine. It'll reach the biggest audience.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-19