Fetching More than 500 files from Server

2012-06-12 Thread Swamy Mudhbasalar
Hello, Problem Description: We are try to fetch files from the ESX server 4.0 through HTTP request using curl library in C program. I am using a single easy curl handle to fetch all the files to take advantage of persistent connection. But, When t

Re: curl_schannel.c and realloc()

2012-06-12 Thread Marc Hoersken
Hi Daniel, 2012/6/13 Daniel Stenberg : > On Tue, 12 Jun 2012, Gisle Vanem wrote: > >> MEM curl_schannel.c:690 realloc(0xb7d828, 16384) = 0xb7d828 > > > Hm, reading the code, won't this always end up as BUFSIZE and thus we know > it already? > If this is the case, we can probably just set CURL_SCH

RE: linker error with wdk

2012-06-12 Thread George Newton
I fixed the issue by rebuilding libcurl for 64 bit. The issue was related to using wdk 64 bit checked build environment, with a 32 bit build of curl. I retargeted the build for 64 bit and built it as c. Everything from there was great. From: georgenewton...@live.co.uk To: curl-library@cool.ha

RE: SFTP "File already completely downloaded" but the file is empty

2012-06-12 Thread Daniel Stenberg
On Tue, 12 Jun 2012, NEDJARI Hafed wrote: * File already completely downloaded ... this originates from this source code: /* Setup the actual download */ if(data->req.size == 0) { /* no data to transfer */ Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL); inf

Re: curl_schannel.c and realloc()

2012-06-12 Thread Daniel Stenberg
On Tue, 12 Jun 2012, Gisle Vanem wrote: MEM curl_schannel.c:690 realloc(0xb7d828, 16384) = 0xb7d828 Hm, reading the code, won't this always end up as BUFSIZE and thus we know it already? -- / daniel.haxx.se --- List admin: ht

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Marc Hoersken
Hi Steve, 2012/6/12 Steve Holme : > I was tucked up in bed keeping warm as I'm really not feeling too good, I > currently have a temperature yet am cold and am feeling sick at the same > time, but I saw the email come in on my phone so I thought I should respond > properly at the keyboard whilst t

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Yang Tse
Steve Holme wrote: > I was tucked up in bed keeping warm as I'm really not feeling too good, Get well soon. > If we don't put anything in here then what will a programmer who is using > ssl_version from the result of curl_version_info() get? Aha!, real reasons for us to chew on. Although man

curl_schannel.c and realloc()

2012-06-12 Thread Gisle Vanem
I've learned that using realloc() should be kept to a minimum; they could cause copying memory from old to new buffer, heap fragmentation etc. So, I noticed that the number of realloc() calls in libcurl has risen sharply with USE_SCHANNEL. A small test using: curl -v https://www.google.com res

RE: Windows SSPI Schannel implementation ready

2012-06-12 Thread Steve Holme
Hi again, On Tue, 12 Jun 2012, Yang Tse wrote: Apologies if any of what I write sounds a little off or abrupt... it isn't my intention! I was tucked up in bed keeping warm as I'm really not feeling too good, I currently have a temperature yet am cold and am feeling sick at the same time, but I s

Re: curl_multi_socket + libev: monitoring data?

2012-06-12 Thread Daniel Stenberg
On Tue, 12 Jun 2012, Felix E. Klee wrote: Or to rephrase my question: When I do something blocking, will "the OS" continue fetching data, for example into some buffer, which is then emptied when calling `curl_multi_socket_action()`? Generally, your machine will still receive data in the kerne

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Gisle Vanem
"Marc Hoersken" wrote: I like this idea. That way Curl_schannel_version would still return something useful while avoiding the dependency on version.lib. Do you also mean that '-DWIN_USE_SSPI' also needs to drop the version.lib requirement? I mean, 'WIN_USE_SSPI' without 'USE_SCHANNEL'. I'm

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Marc Hoersken
2012/6/12 Guenter > > well, perhaps a compromise would be if we just display "SSL-Windows-native" > like we do with WinIDN ? That would drop the new dependency to the version > lib while remaining the information that SSL is provided through a Windows > system lib rather than through an exptern

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Yang Tse
Marc Hoersken wrote: > I do understand and support Yang's arguments, but I also understand > that we need to figure out a good way to illustrate the features > provided by SSPI or any other security provider. The fact that security.dll or secur32.dll is being used is exposed for historical reaso

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Guenter
Hi, 1st of all: I have no strong opinion either for or against the string ... Am 12.06.2012 19:21, schrieb Steve Holme: On Tue, 12 Jun 2012, Yang Tse wrote: 1) curl displays the SSL library in its version string and as such should display something when SSL through Windows SSPI is enabled. k, bu

RE: Windows SSPI Schannel implementation ready

2012-06-12 Thread Steve Holme
Hi Yang, On Tue, 12 Jun 2012, Yang Tse wrote: > SSPI is already present in libcurl's feature list when in use, so... > > Why do we need to show the security.dll or secur32.dll > version in libcurl's version string, and additionally dress it up as > WinSSPI? There are two reasons for including W

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Marc Hoersken
2012/6/12 Yang Tse : > SSPI is already present in libcurl's feature list when in use, so... > > Why do we need to show the security.dll or secur32.dll version in > libcurl's version string, and additionally dress it up as WinSSPI? > > These two are system libraries the same as all other system libs

RE: SFTP "File already completely downloaded" but the file is empty

2012-06-12 Thread NEDJARI Hafed
Here is the curl command but always "File already download" message. E:\Temp\curl\curl-7.24.0-ssh2-ssl-sspi-zlib-static-bin-w32>curl -k -v -u login:passwd sftp://sftp.tradinggrid.gxs.com/AMR52527/././POLLABLE/%2513348364340002%25O093108548006900%25SFTP%25POLLABLE%2539fedh006vfv8h570007s0kr

Re: curl_multi_socket + libev: monitoring data?

2012-06-12 Thread Felix E. Klee
On Mon, Jun 11, 2012 at 9:49 AM, Felix E. Klee wrote: > Does that mean: When I do something blocking, then - unless there are > other processes doing transfers - the Ethernet interface of the > computer will idle? Or to rephrase my question: When I do something blocking, will "the OS" continue fe

linker error with wdk

2012-06-12 Thread George Newton
Hi All, Having scanned around I can see that the linker error issues are fairly common, but so far I haven't been successful using people solutions. I have a driver, written using wdk. An original version 32 bit runs perfectly with libcurl, (using libcurl_imp.lib and related dll). The only mod

Re: Windows SSPI Schannel implementation ready

2012-06-12 Thread Yang Tse
SSPI is already present in libcurl's feature list when in use, so... Why do we need to show the security.dll or secur32.dll version in libcurl's version string, and additionally dress it up as WinSSPI? These two are system libraries the same as all other system libs that might be used, such as ke

Re: [PATCH] socks_sspi.c: Clean up and removal of obsolete minor status

2012-06-12 Thread Yang Tse
On Tue, Jun 12, 2012 at 8:53 AM, Marc Hoersken wrote: > [...] I removed the obsolete minor status variable from the helper > function and the corresponding local variable which was never used. Pushed, and further cleanup commit followed it. -- -=[Yang]=- ---