Problems linking ssl when cross-compiling curl

2014-08-26 Thread Anders Palm
On 26/08/14 00:49, Dan Fandrich wrote: This is more a development question, so curl-library is a better place to ask. No problem, moved it here. The path given to the --with-ssl option might be confusing the build system, as it's also finding pkg-config. You could try it again dropping the

Re: Call for libcurl cmake users/maintainers!

2014-08-26 Thread Ray Satiro
On 8/25/2014 4:03 PM, Ray Satiro wrote: The conditionals from config-win32 could be rewritten in cmake language but then either time one was updated the other probably would need to be too. Another idea is some of the defines that are always the same not compiler specific or otherwise

RE: Does libcurl support signal-sent event (SSE)?

2014-08-26 Thread Daniel Stenberg
On Mon, 25 Aug 2014, Bruno BARRUCAND wrote: I want server to send data sometimes but without being locked. libcurl provides two ways to use it. The easy interface which is synchronous and blocking, and the multi interface which is non-blocking. You decide which one you want. I can read

Re: HTTPS connection from libcurl client to proxy

2014-08-26 Thread Daniel Stenberg
On Mon, 25 Aug 2014, Vijay Panghal wrote: Thanks a lot for stepping forward and working on this! 3. location url is https and proxy url is https libCurl does not support this. This will be useful for creating encrypted tunnel between client to proxy (without HTTP CONNECT) which allow caching

Re: Experimental feature: cURL over TURN

2014-08-26 Thread Daniel Stenberg
On Mon, 25 Aug 2014, Guilherme Versiani wrote: For those who may be interested, I have just added an experimental support to pass protocol data over TURN (like a proxy). The code is located here: https://github.com/guibv/curl-turn (forked from main code). Ah, nice! Feel free to post a patch

Re: Ftp upload resume issuw with very big files.

2014-08-26 Thread Daniel Stenberg
On Tue, 26 Aug 2014, dushyant kumar wrote: I am trying to upload a file in a server using libcurl. Program works fine for small files (upto 5-6 GB ), however for very big files (more than 10 GB), it continues uploading even after the upload is over (By looking into file size). According

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Daniel Stenberg
On Tue, 26 Aug 2014, Tatsuhiro Tsujikawa wrote: The attached patch fixes build error with latest nghttp2. Lovely, what do you think about also bumping the detection of nghttp2 in curl's configure like this, to make it only detect nghttp2 with this newer API? diff --git a/configure.ac

Re: HTTPS connection from libcurl client to proxy

2014-08-26 Thread Von Hawkins
On Mon, 25 Aug 2014, Vijay Panghal wrote: Thanks a lot for stepping forward and working on this! 3. location url is https and proxy url is https libCurl does not support this. This will be useful for creating encrypted tunnel between client to proxy (without HTTP CONNECT) which allow

Networking Question : Windows vs *Unix

2014-08-26 Thread Jon Torrey
Hey everyone, In the past, I wrote a prototype application which makes HTTP PUT requests on a Windows machine which communicates with an API using REST-style commands. This application works flawlessly in the fact that it resolves hostnames just fine. Recently, I have written an application

[PATCH] Implement Public Key Pinning

2014-08-26 Thread moparisthebest
Hello all, This patch implements public key pinning (currently only for OpenSSL) in curl by providing a path to a public key in DER format. The command line option is --pinnedpubkey and if it isn't provided, curl functions just like it did before. For testing, the way I extracted DER formatted

multi curl hangs during DNS resolution on FreeBSD

2014-08-26 Thread Kevin Day
We’ve got a custom application using libcurl that is very very infrequently seeing a hang somewhere in libcurl, but it’s such a rare bug that we’ve never been able to track it down. It only happens on FreeBSD hosts, and it seems timing related during DNS resolution. Switching from the threaded

Re: Ftp upload resume issuw with very big files.

2014-08-26 Thread Gisle Vanem
Daniel Stenberg dan...@haxx.se wrote: On Tue, 26 Aug 2014, dushyant kumar wrote: I am trying to upload a file in a server using libcurl. Program works fine for small files (upto 5-6 GB ), however for very big files (more than 10 GB), it continues uploading even after the upload is over

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Gisle Vanem
Tatsuhiro Tsujikawa tatsuhir...@gmail.com wrote: totally agree with you. Should I include this change to the patch? Some other trouble I'm fighting with. In include/nghttp2/nghttp2.h the comment says: * Callback functions for :type:`nghttp2_session`. The details of * this structure are

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Tatsuhiro Tsujikawa
On Wed, Aug 27, 2014 at 12:00 AM, Gisle Vanem gva...@yahoo.no wrote: Tatsuhiro Tsujikawa tatsuhir...@gmail.com wrote: totally agree with you. Should I include this change to the patch? Some other trouble I'm fighting with. In include/nghttp2/nghttp2.h the comment says: * Callback

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Tatsuhiro Tsujikawa
On Tue, Aug 26, 2014 at 10:44 PM, Tatsuhiro Tsujikawa tatsuhir...@gmail.com wrote: On Tue, Aug 26, 2014 at 9:47 PM, Daniel Stenberg dan...@haxx.se wrote: On Tue, 26 Aug 2014, Tatsuhiro Tsujikawa wrote: The attached patch fixes build error with latest nghttp2. Lovely, what do you

Re: Experimental feature: cURL over TURN

2014-08-26 Thread Guilherme Versiani
Usage: $ curl --turn [IP:port] --proxy-user [user:pass] [destination] Do you think it makes sense to also support some sort of proxy protocol prefix? Like for example setting the proxy to turn://IP:port in the same vein we can do SOCKS and HTTP etc already. It makes it way simpler for

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Daniel Stenberg
On Wed, 27 Aug 2014, Tatsuhiro Tsujikawa wrote: ​Right, I take my liberty to go forward, here is the ​patch including configure.ac change. Thanks, I also modified the #if line in lib/http2.c to reject nghttp2 versions older than 0x000600, mainly a precaution for those not using configure.

Re: Ftp upload resume issuw with very big files.

2014-08-26 Thread Daniel Stenberg
On Tue, 26 Aug 2014, Gisle Vanem wrote: Which Windows compiler are you Dushyant using that supports %llu. MingW? Another problem AFAICS: long resumeFrom = 0; curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, resumeFrom); resumeFrom should be 'long long'. And use _fseeki64() too. Ah

Re: Networking Question : Windows vs *Unix

2014-08-26 Thread Daniel Stenberg
On Tue, 26 Aug 2014, Jon Torrey wrote: Recently, I have written an application which uses the same code but does not behave normally. Curl fails to resolve the hostname. On which unix and which curl version? However, while debugging, I see curl calls gethostname() and gethostbyname()

Re: [PATCH] Implement Public Key Pinning

2014-08-26 Thread Daniel Stenberg
On Tue, 26 Aug 2014, moparisthebest wrote: This patch implements public key pinning (currently only for OpenSSL) in curl by providing a path to a public key in DER format. The command line option is --pinnedpubkey and if it isn't provided, curl functions just like it did before. Lovely!

Re: HTTPS connection from libcurl client to proxy

2014-08-26 Thread Vijay Panghal
Hi Daniel, Do you actually have a use case/users who want this? I do want to use (3) in one of my project. One of the use case for (3) is https caching proxy server. In this use case proxy is trusted server to cache the https content. This scheme does not trick user anyway. As user knows that

Problems using libcurl with c-ares

2014-08-26 Thread Spork Schivago
Hello everyone. I'm having some issues here and would like some help. I compile and install polarssl and c-ares. I'm using a cross compiler and I'm compiling for the Playstation 3 using an open source toolchain. When compile libcurl with the following options: