cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Upload error with curl scp on Windows

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Tue, 3 Feb 2009 22:40:21 -0000

"Markus Moeller" <huaraz_at_moeller.plus.com> wrote in message
news:gmae8c$m6n$1_at_ger.gmane.org...
>
> "Daniel Stenberg" <daniel_at_haxx.se> wrote in message
> news:alpine.DEB.1.10.0902032220350.23918_at_yvahk2.pbagnpgbe.fr...
>> On Tue, 3 Feb 2009, Markus Moeller wrote:
>>
>>> curl: (55) Failed sending data to the peer
>>
>> I assume you can send data to that server using the openssh scp command
>> or similar?
>>
>
> yes I can using winscp for example. The server is a Linux OpenSuse 11.1
> box
>
>>> Has anybody seen that before ?
>>
>> Can't say I do...
>>
>>> I use D:\BuildArea\curl-7.19.3>src\curl.exe -V curl 7.19.3
>>> (i386-pc-win32) libcurl/7.19.3 OpenSSL/0.9.8h zlib/1.2.3 libssh2/1.0
>>>
>>> Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
>>> Features: Largefile NTLM SSL SSPI libz
>>
>> Looks modern enough. The tough part follows: it'll be interesting if you
>> could get and build one of the libssh2 example codes and see if that
>> works to SCP data, as if it doesn't we know for sure that the problem is
>> within libssh2 and if does we know libcurl is to blame...
>>
>
> I will see what I can do. I got a bit more debug, but I am not sure if it
> helps
>
>
> D:\BuildArea\curl-7.19.3-socks-gssapi-debug>src\curl.exe -T
> ..\profuis283_freewa
> re.zip -u markus scp://192.168.1.6/tmp/
> Enter host password for user 'markus':
> [libssh2] Connection: Setting blocking mode on session 0
> [libssh2] Connection: Allocated new channel ID#0
> [libssh2] Connection: Opening Channel - win 65536 pack 16384
> [libssh2] Connection: Connection Established - ID: 0/0 win: 0/65536 pack:
> 32768/16384
> [libssh2] Connection: starting request(exec) on channel 0/0,
> message=scp -t /tmp/test.zip
> [libssh2] Connection: Window adjust received for channel 0/0, adding
> 131072 bytes, new window_size=131072
> [libssh2] Connection: Attempting to read 1 bytes from channel 0/0 stream
> #0
> [libssh2] Connection: Attempting to read 1 bytes from channel 0/0 stream
> #0
> [libssh2] Connection: 1 bytes received for channel 0/0 stream #0
> [libssh2] Connection: Reading 1 of buffered data from 0/0/0
> [libssh2] Connection: Unlinking empty packet buffer from channel 0/0
> [libssh2] Connection: Queueing 1 bytes for receive window adjustment for
> channel 0/0
> [libssh2] Connection: Writing 39 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 39 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Attempting to read 1 bytes from channel 0/0 stream
> #0
> [libssh2] Connection: 1 bytes received for channel 0/0 stream #0
> [libssh2] Connection: Reading 1 of buffered data from 0/0/0
> [libssh2] Connection: Unlinking empty packet buffer from channel 0/0
> [libssh2] Connection: Queueing 1 bytes for receive window adjustment for
> channel 0/0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 16384 0 0 0 16384 0 21389 --:--:-- --:--:-- --:--:--
> 21389[l
> ibssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Sending 16384 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing 16384 bytes on channel 0/0, stream #0
> [libssh2] Connection: Splitting write block due to 16345 byte window_size
> on 0/0/0
> [libssh2] Connection: Sending 16345 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Window adjust received for channel 0/0, adding 65575
> bytes, new window_size=65575
> [libssh2] Connection: Sending 39 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: libssh2_packet_write returned EAGAIN
> 100 112k 0 0 0 112k 0 95334 --:--:-- 0:00:01 --:--:--
> 219k[l
> ibssh2] Connection: Sending 16345 bytes on channel 0/0, stream_id=0
> [libssh2] Connection: Writing -16345 bytes on channel 0/0, stream #0
> 100 143k 0 0 0 143k 0 116k --:--:-- 0:00:01 --:--:--
> 116k[l
> ibssh2] Connection: Freeing channel 0/0 resources
> [libssh2] Connection: Closing channel 0/0
> [libssh2] Connection: Window adjust received for channel 0/0, adding 81881
> bytes, new window_size=131072
> [libssh2] Connection: Close received for channel 0/0
>
> curl: (55) Failed sending data to the peer
>
>> --

Interestingly when I compile cutl with /DCURLDEBUG=1 it works.

>>
>> / daniel.haxx.se
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
>> FAQ: http://curl.haxx.se/docs/faq.html
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET