curl-users
Re: Curl
Date: Sat, 26 May 2001 18:04:01 +0200 (MET DST)
On Fri, 25 May 2001, Netiks . wrote:
Please direct future mails in this subject to the mailing list. It allows
others to join in and help, to share their ideas, contribute their suggestions
and spread their wisdom. Keeping discussions on public mailing lists also
allows for others to learn from this (both current and future users thanks to
the web based archives of the mailing list), thus saving me from having to
repeat myself even more. Thanks for respecting this.
This reply is CC'ed to the mailing list.
> files are downloaded with CR (carriage return) but the Line Feed (LF) is
> missing which causes problems in our application. From the documentation
> we understand that curl strips the line feed charatcers and that we
> should use the --data-binary option to avoid this.
I don't understand what wording in the docs that made you think that.
--data-binary is for POSTing to HTTP servers. Curl always download binary by
default.
> c:\curl\curl.exe -o test.xml -u username:password -d/--data -binary <the
> url accessed>
-d/--data made curl trea '/--data' as data to send in a POST and -binary did
tell curl to use 'inary' as a file name to read cookies from...
> 1) Is it true that curl removes the LF by default
No.
> 2) We tried to use the -d/ --data-binary option in different ways but the
> result is the same.
The option is -d OR --data-binary. Besides, you should use any of them for
simply downloading stuff.
> Could you please give us the correct syntax to let curl keep the file as
> it is. without stripping the LF after the CR?
curl.exe -o test.xml -u username:password [URL]
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/Received on 2001-05-26