replacing HTTPget with basic auth credentials into libcurl commands

2013-10-15 Thread Sunil Chandrasekharan
Hi, I am using Java DefaultHttpClient with basic auth in my android code as: *HttpParams params = new BasicHttpParams(); ConnManagerParams.setTimeout(params, mTimeOut); HttpConnectionParams.setSoTimeout(params, mTimeOut); HttpConnectionParams.setConnectionTimeout(params, mTimeOut); HttpConnection

Can't use curl with TLSv1.2 (OpenSSL)

2013-10-15 Thread Steve Holme
Hi all, I see that, some of the auto builds that use earlier versions of OpenSSL as well as my own Windows builds (currently using OpenSSL v1.0.0i) break due to the new functionality from pull request #79. I have just pushed a very quick fix to enable builds to continue, however, I wanted to disc

Re: Segmentation Fault while doing curl_easy_perform...

2013-10-15 Thread Daniel Stenberg
On Tue, 15 Oct 2013, Chiaramello Daniel wrote: rpm -qa | grep curl curl-7.15.5-9.el5_6.3 curl 7.15.5 was released over 7 years ago on Aug 7th 2006. We have done over 1000 bug fixes since then... -- / daniel.haxx.se --- List

RE: [PATCH] OAUTH 2.0 Bearer token support SMTP/IMAP (XOAUTH2)

2013-10-15 Thread Steve Holme
On Sat, 12 Oct 2013, Kyle L. Huff wrote: > > Daniel announced this week that we are approaching feature freeze > > for cURL 7.33 and as I felt it would be best to add XOAUTH to POP3 in > > the same release as IMAP and SMTP I have cobbled together the > > appropriate implementation. > > Sorry for t

Re: CURLINFO_GNUTLS_SESSION (was Re: Patch: Support CURLINFO_CERTINFO with GnuTLS)

2013-10-15 Thread Dan Fandrich
On Tue, Oct 15, 2013 at 03:26:40PM +0200, Christian Grothoff wrote: > Here's an improved patch that makes this (presumably) SSL-backend > independent. I only tested it with GnuTLS though, and some SSL > backends are not supported by the patch. The patch would need to > be applied on top of the 2n

Re: Segmentation Fault while doing curl_easy_perform...

2013-10-15 Thread Jeffrey Walton
On Tue, Oct 15, 2013 at 11:14 AM, Chiaramello Daniel wrote: > ... > [New process 13954] > > #0 0x0945fb80 in ?? () > > (gdb) where > > #0 0x0945fb80 in ?? () > > #1 0x010cf808 in EVP_CIPHER_CTX_cleanup () from /lib/libcrypto.so.6 > > #2 0x010cfa48 in EVP_CipherInit_ex () from /lib/libcrypto.so

Re: [PATCH] Fix the --no-sessionid option, which is not working if using libnss

2013-10-15 Thread Daniel Stenberg
On Tue, 15 Oct 2013, Paul Donohue wrote: Thanks, merged! -- / daniel.haxx.se --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

[PATCH] Fix the --no-sessionid option, which is not working if using libnss

2013-10-15 Thread Paul Donohue
--- lib/nss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/nss.c b/lib/nss.c index 34dfbb1..43576e6 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -1244,8 +1244,9 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex) if(SSL_OptionSet(model, SSL_HANDSH

Re: Is it possible to get the response message associated with CURLINFO_RESPONSE_CODE?

2013-10-15 Thread Daniel Stenberg
On Tue, 15 Oct 2013, Sachin Nikumbh wrote: I am trying to use the curl to communicate with our proprietary server. For all the non 200 messages, our server sends a message which is very useful for the client. I can get to the response code using CURLINFO_RESPONSE_CODE but I haven't found any w

Re: transfer closed with outstanding read data remaining

2013-10-15 Thread Daniel Stenberg
On Mon, 14 Oct 2013, Sunny Khatri wrote: Please don't top-post, it makes following this thread totally confusing and hard to figure out to what you're referring to here... After some more debugging, I see "Closing connection #0". I think it might be related to this error. Does it has to do an

Is it possible to get the response message associated with CURLINFO_RESPONSE_CODE?

2013-10-15 Thread Sachin Nikumbh
Hi, I am trying to use the curl to communicate with our proprietary server. For all the non 200 messages, our server sends a message which is very useful for the client. I can get to the response code using CURLINFO_RESPONSE_CODE but I haven't found any way to get to the message associated with th

Re: [PATCH] ssh: Handle successful SSH_USERAUTH_NONE

2013-10-15 Thread Daniel Stenberg
On Mon, 14 Oct 2013, Tyler Hall wrote: According to the documentation for libssh2_userauth_list(), a NULL return value is not necessarily an error. You must call libssh2_userauth_authenticated() to determine if the SSH_USERAUTH_NONE request was successful. This fixes a segv when using sftp o

Re: [PATCH 2/2] build: distribute and install libcurl.m4 by default

2013-10-15 Thread Daniel Stenberg
On Sun, 13 Oct 2013, Dave Reisner wrote: Thanks, will merge and push. I used to think that this isn't really our job to install, but I've since then changed my mind and I now think we help the greater software infrastructure by providing this helper file to aid other projects to use and detect

Re: [PATCH 1/2] tool: use XFERFUNCTION to save some casts

2013-10-15 Thread Daniel Stenberg
On Sun, 13 Oct 2013, Dave Reisner wrote: Thanks! I've had this change pending in my mind for a while and I'm happy to get it merged. -- / daniel.haxx.se --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette:

Re: [PATCH] curl.1: fix typo conjuction -> conjunction

2013-10-15 Thread Daniel Stenberg
On Mon, 14 Oct 2013, Alessandro Ghedini wrote: just a lil typo. Thanks, merged! -- / daniel.haxx.se --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

OpenSSL caching certificates?

2013-10-15 Thread Todd L Miller
I'm using libcurl in an application speaking a RESTful protocol to a server secured by X.509; the user supplies proxies for their certs, and all works well until the proxy expires. What we expect to happen is that libcurl / OpenSSL will notice that the user has replaced the proxy and start us

RE: Error SSL: certificate subject name does not match target host name

2013-10-15 Thread Yehezkel Horowitz
> and SSL certificate HOSTNAME of Ftp Server is provided as COMMON NAME and > signed the certificate with Minimal CA certificate. > But, When I have created the SSL certificate and provide the IP address of > the Ftp Server as Common Name and signed the certificate with a minimal CA certificate

Error SSL: certificate subject name does not match target host name

2013-10-15 Thread Rai, Anand
Hello All, I am facing the problem with liburl when using curl_easy_setopt(handle,CURLOPT_SSL_VERIFYHOST,2L); curl_easy_setopt(handle,CURLOPT_SSL_VERIFYPEER,2L); and SSL certificate HOSTNAME of Ftp Server is provided as COMMON NAME and signed the certificate with Minimal CA certificate. Error

RE: Segmentation Fault while doing curl_easy_perform...

2013-10-15 Thread Chiaramello Daniel
Hello all. I found a few pages speaking of using curl with OpenSSL in a multithread way. I updated the code to install the 2 required CRYPTO callbacks exactly as specified in the http://curl.haxx.se/libcurl/c/threaded-ssl.html sample (and I saw that these callbacks are called 1600 times before

Segmentation Fault while doing curl_easy_perform...

2013-10-15 Thread Chiaramello Daniel
Hello curl gurus. I am facing a problem while sending an HTTPS request with curl... Here is an extract of the code, all error code being removed, and curl_global_init() and curl_global_cleanup() being called in main: bool FB_call_webservice(const char* AA_param) { string VH_json_string = FH_f

Re: CURLINFO_GNUTLS_SESSION (was Re: Patch: Support CURLINFO_CERTINFO with GnuTLS)

2013-10-15 Thread Christian Grothoff
Hi! Here's an improved patch that makes this (presumably) SSL-backend independent. I only tested it with GnuTLS though, and some SSL backends are not supported by the patch. The patch would need to be applied on top of the 2nd patch I sent (#2 and #3 are independent of the first patch). I hope

Re: Failed Self Test (Mac OSX, x64)

2013-10-15 Thread Daniel Stenberg
On Mon, 14 Oct 2013, Jeffrey Walton wrote: Yes, I think that libcurl might need some attention to work properly with an OpenSSL built like that. Are you up to it? Sure. opensslconf.h translates the options into defines: Thanks, but then I guess libcurl needs to use those defines in some su