cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Archives

Re: Curl won't read from stdin for --upload-file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 20 Nov 2009 20:13:11 +0100 (CET)

On Wed, 18 Nov 2009, Paul M De Goes wrote:

> When I try to send data through stdin like this, however:
>
> echo "C:\\File\\File.txt" | curl --upload-file -
> http://www.mySite.com/index.php

That would only PUT the file name.

> curl --upload-file - http://www.stjohnhome.us/index.php < C:\\File\\File.txt

That's how it is done.

If you use -v or --trace-ascii as well, I'm sure you'll get some further clues
about what's going on!

-- 
  / 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.html
Received on 2009-11-20

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET