Adding PROPFIND support

2013-04-13 Thread David Strauss
While I initially assumed it would be outside the scope of libcurl, I noticed that the SFTP and FTP implementations include directory listings. As part of my FuseDAV work, I've written a PROPFIND handler that cleanly integrates libcurl's chunk-based body callbacks with Expat's stream parser: http

Re: URL parsing

2013-04-13 Thread David Strauss
On Sat, Apr 13, 2013 at 2:18 PM, Daniel Stenberg wrote: > I've not seen any such that aren't either gigantic in size or complexity. > Also, it seems like a rather massive change to switch to at this point. I guessed the reasons would be along those lines. :-) > Is it really easier to prove corre

Re: URL parsing

2013-04-13 Thread Daniel Stenberg
On Sat, 13 Apr 2013, David Strauss wrote: Are you opposed to code generated using a lexer/parser or a library like uriparser? I've not seen any such that aren't either gigantic in size or complexity. Also, it seems like a rather massive change to switch to at this point. It's hard to prove

Re: Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

2013-04-13 Thread Taiki
No, I was stuck with an other one, Thanks! Regards Taiki Did you see this example? http://curl.haxx.se/libcurl/c/cacertinmem.html Regards Oscar --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://c

Re: URL parsing

2013-04-13 Thread Daniel Stenberg
On Sat, 13 Apr 2013, Steve Holme wrote: 1) This only adds support to the URL and not to the username / password that may be specified with the --user or -u command line arguments. It wouldn't take much more work to add support for this as well but I wanted to gather others' opinions on this be

Re: Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

2013-04-13 Thread David Strauss
On Sat, Apr 13, 2013 at 7:56 AM, Taiki wrote: > Does anyone have a code using this feature or an example exploiting a PEM > file? It's easy to convert from PEM to PKCS#12: openssl pkcs12 -chain -export -password pass:PASSWORDFORPKCS12 -in CERTIFICATE.pem -out CERTIFICATE.p12 I'm sure it's also p

Re: URL parsing

2013-04-13 Thread David Strauss
On Sat, Apr 13, 2013 at 3:12 AM, Steve Holme wrote: > Whilst I have 20 odd years' experience as a C/C++ developer would someone > be so kind to check the four uses of sscanf() in url.c between lines 4381 > and 4402 to see if this is the best / most optimal way of extracting the > user, password an

Re: Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

2013-04-13 Thread Oscar Koeroo
Taiki schreef: >Hello, >I'm looking for a way to inject a certificate to libcURL. >I'm actually using CURLOPT_CAINFO but I've to create the file, then use > >it, then delete it and I would rather like to use >CURLOPT_SSL_CTX_FUNCTION. >My problem is that the example available use the PKCS12 for

Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

2013-04-13 Thread Taiki
Hello, I'm looking for a way to inject a certificate to libcURL. I'm actually using CURLOPT_CAINFO but I've to create the file, then use it, then delete it and I would rather like to use CURLOPT_SSL_CTX_FUNCTION. My problem is that the example available use the PKCS12 format and, as I don't have

Re: //Re: find a bug when i use libcurl 7.19.7

2013-04-13 Thread Kamil Dudka
On Saturday, April 13, 2013 20:13:32 lizhibao wrote: > there is no issue in libcurl 7.30.0. > > new library has fixed the socket problem? It is not clear from your description what "the socket problem" actually is. Are you able to repeat the problem using the curl tool against a publicly avail

//Re: find a bug when i use libcurl 7.19.7

2013-04-13 Thread lizhibao
于 2013-04-13 18:01, Kamil Dudka 写道: > On Saturday, April 13, 2013 17:23:45 lizhibao wrote: >> curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 >> zlib/1.2.3 libidn/1.18 libssh2/1.2.2 > Are you able to communicate properly with that server using a newer version > of libcurl? > > Ka

Re: libuv example

2013-04-13 Thread Clemens Gruber
"Gisle Vanem" wrote: > "Clemens Gruber" wrote: >> I am sure many of you are aware that libev and libevent only support >> select()/poll() on Windows, but not the nice and much faster IO >> Completion Ports API. > libevent as used in the Tor-project and others has used IOCP for > some time no

Re: certificate verification against system cert (?) when custom CAINFO is set

2013-04-13 Thread Richard Michael
On Fri, Apr 12, 2013 at 8:53 AM, Dima Tisnek wrote: > On 11 April 2013 23:39, Daniel Stenberg wrote: >> On Thu, 11 Apr 2013, Dima Tisnek wrote: >> >>> I'm trying to use curl with custom CA's only, but it seems server >>> certificate gets verified against system CA's too. >> >> >> I don't remember

URL parsing

2013-04-13 Thread Steve Holme
Dear friends, During the last four / five weeks of bug fixing I was able to add support in a local branch for parsing ";auth=" from the URL given to curl. As we have now released v7.30.0 I am starting to push my changes to master and you will note from my last commit (13/04/2013 10:49:42) that I

Re: find a bug when i use libcurl 7.19.7

2013-04-13 Thread Kamil Dudka
On Saturday, April 13, 2013 17:23:45 lizhibao wrote: > curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 > zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Are you able to communicate properly with that server using a newer version of libcurl? Kamil ---

find a bug when i use libcurl 7.19.7

2013-04-13 Thread lizhibao
bug description: when i start my app, use curl_easy_perform() to first send a message to server, but always return 55(Failed sending data to the peer), but wireshark capture the http post request message has send to server, the response message from server is already arrived client, and then, sece