cURL / Mailing Lists / curl-library / Single Mail


Re: Error when doing FTP upload via http_proxy tunnel: "Transferred a partial file"

From: Ray Satiro <>
Date: Wed, 02 Jul 2014 14:19:08 -0400

On 6/30/2014 11:23 PM, Ramprasad N wrote:
> Hi,
> The uploaded file is 34600 bytes smaller
> When I tried uploading another file it was 64488 bytes smaller
> This happens for all files. The last few bytes never reaches the server.
> But the same files are getting uploaded well by using FileZilla client
> This happens only when done via proxy
> It happens irrespective of the ftp server (I've tried IIS server and
> FileZilla server)
> libcurl is set to pickup proxy details automatically
> Here is the verbose output (I had to replace the actual server name
> with
> I'm using libcurl version 7.83
> This sample code (based on
> specifies
> My actual code also fails with the same error, it uses the
> CURLOPT_READFUNCTION callback to upload dynamically generated data
> without specifying INFILESIZE.
> I've been trying since three days to get this working......

I can try to reproduce this but I need a sample. You say you are based
on the example code but you have your own readfunction. I would need a
sample where the problem happens to try to reproduce. Also check your
libcurl version number again and any information you can get on the
proxy. I know there is a problem with Fiddler proxy ftp via CONNECT, but
I did a wireshark and I think it is a Fiddler problem not a curl
problem. That is the only one I am aware of and it doesn't look like
you're connecting to a Fiddler proxy. Please provide the details listed

List admin:
Received on 2014-07-02