curl-library
Re: Error when doing FTP upload via http_proxy tunnel: "Transferred a partial file"
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 ---myserver.com---)
>
[...]
> I'm using libcurl version 7.83
>
> This sample code (based on
> http://curl.haxx.se/libcurl/c/fileupload.html) specifies
> CURLOPT_INFILESIZE_LARGE.
> 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
here http://curl.haxx.se/docs/bugs.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-02