curl-users
Re: libCURL Cannot write to file
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Oct 2009 04:40:59 +0200 (CEST)
Date: Tue, 13 Oct 2009 04:40:59 +0200 (CEST)
On Fri, 9 Oct 2009, Irvs wrote:
> I am trying to download a file from an FTP site using curl. I have no
> problem with the connection, and the verbose log says no problem. I got a
> "200 OK" response. The problem is, I cannot seem to write the data into a
> file. Though the file is created, but it is 0 bytes. I have the same flow
> with HTTP and it works well but not in FTP. I am very sure that the link is
> not dead, and it can be accessed using the browser.
I don't know why, but a 200 OK from a FTP server is seriously weird. Are you
using a HTTP proxy for this? If so, are you sure it gets FTP urls fine?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-10-13