cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Reflection for Secure IT Server

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Mon, 3 May 2010 19:23:58 +0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Monday, May 03, 2010 6:32 PM
> To: libcurl development
> Subject: RE: Reflection for Secure IT Server
>
> libssh2 1.2.5 is the latest libssh2 release.

Fetched libssh2-1.2.5, compiled it and re-compiled curl-7.20.1, with the same result:
======================================================
qxu_at_durian(pts/1):~/opensrc/libssh2-1.2.5/example[309]$ ./sftp_write 13.121.8.133 <user> <pass> testBig.pdf /Home/Scans/testBig.pdf
Fingerprint: 7B 98 19 12 F3 A2 14 93 3F 72 85 3C 43 DA 19 EF 7F 9A 3A 6B
libssh2_sftp_init()!
libssh2_sftp_open()!
libssh2_sftp_open() is done, now send data!
all done

------ /* libssh2 works well, while libcurl doesn't */

qxu@durian(pts/3):~/opensrc/curl-7.20.1/src[134]$ ./curl -v -k -u <user>:<pass> -T testSmall.pdf sftp://13.121.8.133/Home/Scans/
* About to connect() to 13.121.8.133 port 22 (#0)
* Trying 13.121.8.133... % Total % Received % Xferd Average Speed Time
    Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to 13.121.8.133 (13.121.8.133) port 22 (#0)
* SSH authentication methods available: password
* Initialized password authentication
* Authentication complete
} [data not shown]
-10088 511k 0 0 0 -5279 0 -1413 --:--:-- 0:00:37 --:--:--
-10408 511k 0 0 0 -5446 0 -1420 --:--:-- 0:00:38 --:--:--
-10729 511k 0 0 0 -5614 0 -1426 --:--:-- 0:00:39 --:--:--
-11049 511k 0 0 0 -5782 0 -1433 --:--:-- 0:00:40 --:--:--
-11370 511k 0 0 0 -5950 0 -1439 --:--:-- 0:00:41 --:--:--
-11691 511k 0 0 0 -6117 0 -1444 --:--:-- 0:00:42 --:--:--
-12012 511k 0 0 0 -6286 0 -1450 --:--:-- 0:00:43 --:--:--
-12332 511k 0 0 0 -6453 0 -1455 --:--:-- 0:00:44 --:--:--
...... /* the strange output goes on and on */
======================================================
The file "testBig.pdf" is around 2,602KB, while "testSmall.pdf" is around 512KB. At the server's end, "testBig.pdf" is transferred successfully, while "testSmall.pdf" is only 16KB.

In libssh2, we can get detailed debug log with "libssh2_trace(session, ~0)", provided that "./configure --enable-debug" is done in configuration stage. For libcurl, is there any similar way to get exhaustive debug info, besides -v flag? Or, is there anything more I can provide for the list to have a look at?

Thanks,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-03