curl-users
stdin for PUT not working
Date: Tue, 24 Nov 2009 08:51:59 -0700
Daniel,
Thanks for replying. I'm actually trying to PUT a string
"C:\\File\\File.txt" was just placeholder string; it could have been
"gobbledygook." I'm 90% sure that this is a bug in curl.
Post does accept data from stdin using
curl -d @- http://whatever.com
, but no matter what I try with PUT it will not read from stdin (file or
text). So I'm using a workaround for now. =) Let me know if you figure
out anything more, and thanks again for your answer.
Regards,
Paul D
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-24