cURL / Mailing Lists / curl-users / Single Mail

curl-users

Redirecting cURL upload output

From: Brad Demers <bjdemers76_at_yahoo.ca>
Date: Tue, 18 Aug 2009 11:45:13 -0700 (PDT)

Hi all,

I'm trying to redirect output from a cURL upload but I don't seem to be having any luck

I've used:
curl -u username:password -T '/file.pdf' ftp://ftp.site.ca -o '/logs/filelog.txt' --create-dirs
and it'll create the directory, but it won't actually create a filelog.txt file.

Similarly, if I use an output redirect:
curl -u username:password -T '/file.pdf' ftp://ftp.site.ca > /logs/filelog.txt
I end up with a zero k file.

Am I doing something wrong here? In all cases the file is being transferred correctly; I am just hoping for a way to get some feedback about the output.

According to cURL's -V command, I have curl 7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3

      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-08-18