cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL and UNIX to DOS conversions

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 15 Nov 2006 09:25:25 +0100 (CET)

On Tue, 14 Nov 2006, steve wrote:

> curl -F "Username=xxx" -F "Password=xxx-F "UploadFile=@test.txt"
> https://site/post.aspx -o test.txt.html
>
> One of the problems I'm running into right now is that the vendor is
> receiving the file, but SURPRISE, the file is in UNIX format, with just the
> LF character at the end of each line. They need it in DOS format, with both
> the LF and CR characters.

Then convert the file according to your wishes before you POST it. curl has no
option to allow this.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-11-15