cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with ftp upload using pipe an win32

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 27 Jan 2005 19:35:57 +0100 (CET)

On Thu, 27 Jan 2005, Christian Monien wrote:

> Is it possible that the standard in is opened in ascii, not in binary-mode?

curl never opens stdin, it just reads from it if you tell it to. And it
doesn't change mode or anything, so if Windows sets it to ascii by default,
then ascii it will be.

I'm not sure how the best fix for this would be.

A work-around for you is of course to direct the data to a temporary file and
then upload that.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-27