cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Failed Writing Body

From: Mark Schienbein <mark_at_jurysystems.com>
Date: Wed, 21 Sep 2011 14:26:37 -0700

I added those options and the transfer now works from my program. I am using
the CURLOPT_PROXY_TRANSFER_MODE setting to insure a binary file transfer
through the proxy. As documented, this adds the "type=i" to the end of the
URL. Unfortunately, the "type=i" gets set as part of the file name on the
FTP server, however it does insure that the complete file is transfered.
Without this setting, all CRLF in the input file are simply represented by a
LF character in the output file. Is their someway to tell CURL to do a
binary transmission through the proxy, but not to apped the "type=i" clause
to the URL?

Using the command line CURL.exe, I was not able to find any parameter that
produces a full binary transfer through the proxy to the target FTP server.
The Proxy_transfer_mode does not seem to be supported from the command line
and all of the various data type options that I tried resulted in just a LF
character in the output file.

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Wednesday, September 21, 2011 8:03 AM
Subject: Re: Failed Writing Body

> On Wed, 21 Sep 2011, Mark Schienbein wrote:
>
> > All would be well if I could get my prgram with the no tunnel option to
> > behave like the curl.exe program does when it is not using tunnel.
>
> Did you compare the request headers between curl and your application?
>
> Your program doesn't set any size of the file you upload, making libcurl
to
> use "Transfer-Encoding: chunked" for it. Is that the reason?
>
> The command line also uses User-Agent which your application doesn't seem
to
> use and your app sends proxy auth...
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-21