cURL / Mailing Lists / curl-library / Single Mail


Re: Uploaded unaligned file size

From: michele <>
Date: Tue, 15 Mar 2011 14:10:20 +0100

Thank you!
The problem now seems to be solved.

I added the following command to the header:

_headerList = curl_slist_append(_headerList , "TYPE I");

Both for get and put now work well.

Thank you.

On 03/15/2011 01:01 PM, Ben Noordhuis wrote:
> On Tue, Mar 15, 2011 at 12:43, michele<> wrote:
>> Hi to all!
>> I have the following problem:
>> I cannot upload a file to an ftp site.
>> I receive the following error message:
>> FtpCurl: * Remembering we are in dir
>> "/home/michele/raid0/export/_TEMP_DIR/test20.bin.ftptmp"
>> FtpCurl: * Uploaded unaligned file size (0 out of 100000000 bytes)
>> FtpCurl:< 250 Directory successfully changed.
>> FtpCurl:> PASV
>> FtpCurl: * Connect data stream passively
>> FtpCurl: * Connection #0 to host pc-mazzei left intact
>> ..
>> The curl return error is: 9 (Access denied to remote resource)
>> This means that the file was not transferred to my pc (Ubuntu 64 bit, via
>> ftp without ssl) and takes an error.
>> Any idea of why this problem occurred?
> Michele, could it be that you are trying to upload a binary file in ASCII mode?
> -------------------------------------------------------------------
> List admin:
> Etiquette:

ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo.

WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format.
List admin:
Received on 2011-03-15