Re: curl/libcurl SNMP protocol support

2016-08-10 Thread Gisle Vanem via curl-library
Sergei Nikulov wrote: > curl will dump object pointed by url > snmp://example.com/common/1.3.6.1.2.1.1.3.0 > It's not just another protocol :) I once did something like this. But only for Windows-SNMP. Not very useful with libcurl either (mostly for the trace). But here it is

Re: curl/libcurl SNMP protocol support

2016-08-10 Thread Sergei Nikulov
2016-08-10 16:15 GMT+03:00 Daniel Stenberg : > On Wed, 10 Aug 2016, Sergei Nikulov wrote: > >>> What form would you have the response data returned in?? What ultimately >>> are you trying to accomplish? >> >> >> I believe you've ever read here https://curl.haxx.se/ about curl for

Re: curl/libcurl SNMP protocol support

2016-08-10 Thread Daniel Stenberg
On Wed, 10 Aug 2016, Sergei Nikulov wrote: What form would you have the response data returned in?? What ultimately are you trying to accomplish? I believe you've ever read here https://curl.haxx.se/ about curl for what it used. My idea just adding additional protocol in the list of

Re: curl/libcurl SNMP protocol support

2016-08-10 Thread Sergei Nikulov
2016-08-09 20:26 GMT+03:00 Rich Gray : > Sergei Nikulov wrote: >> >> 9 авг. 2016 г. 7:33 PM пользователь "Rich Gray" >> > > написал: >> > >> > Sergei Nikulov wrote: >> >> >> >> Hello All! >> >> >> >>

Re: libcurl - windows / unicode filenames support...

2016-08-09 Thread Henri Hein
ile names using unicode? >> >> What happens to existing applications if we'd ship a libcurl with that >> enabled, won't there be (a risk of) breakage? Ie ABI incompatibility? > > Theoretically, it should not for Linux/Unix, because typedef just type alias. > But practically de

Re: curl/libcurl SNMP protocol support

2016-08-09 Thread Rich Gray
Sergei Nikulov wrote: 9 авг. 2016 г. 7:33 PM пользователь "Rich Gray" > написал: > > Sergei Nikulov wrote: >> >> Hello All! >> >> Is anybody interest in RFC 4088 "Uniform Resource Identifier (URI) >> Scheme for the Simple

Re: curl/libcurl SNMP protocol support

2016-08-09 Thread Sergei Nikulov
utilities seems pointless. The ground is already well covered. > Do you think they already have RFC 4088 implemented? And able to use uri for requests? > I suppose the only thing that might be useful would be the ability to handle simultaneous SNMP and libcurl traffic. That would mean some w

Re: curl/libcurl SNMP protocol support

2016-08-09 Thread Rich Gray
T requests? Thank you. Reproducing the net-SNMP library and its command line utilities seems pointless. The ground is already well covered. I suppose the only thing that might be useful would be the ability to handle simultaneous SNMP and libcurl traffic. That would mean some way to have the

Re: libcurl - windows / unicode filenames support...

2016-08-09 Thread Sergei Nikulov
d use it instead of plain char. This typedef will be simple char on >> Unix/Linux variants and TCHAR for Windows. > > > I take it that's a take for using file names using unicode? > > What happens to existing applications if we'd ship a libcurl with that > enabled, won't

Re: libcurl - windows / unicode filenames support...

2016-08-09 Thread Daniel Stenberg
for Windows. I take it that's a take for using file names using unicode? What happens to existing applications if we'd ship a libcurl with that enabled, won't there be (a risk of) breakage? Ie ABI incompatibility? -- / daniel.haxx.se

curl/libcurl SNMP protocol support

2016-08-09 Thread Sergei Nikulov
Hello All! Is anybody interest in RFC 4088 "Uniform Resource Identifier (URI) Scheme for the Simple Network Management Protocol (SNMP)" implementation in curl utility? Maybe someone already thinking about adopting Net-SNMP library as engine for curl SNMP GET requests? Thank you. -- Best

Re: libcurl - windows / unicode filenames support...

2016-08-09 Thread Sergei Nikulov
ws has been discussed in #345 [1]. While I > acknowledge UTF-16 is the native choice I thought it would be easier to pass > around UTF-8 in the library, that way we wouldn't have to implement a bunch > of sister libcurl functions for wide characters. The problem with that is > because U

Re: libcurl - windows / unicode filenames support...

2016-08-05 Thread Ray Satiro via curl-library
ating systems. So I also wondering how it can encode UTF-8 in file names. Supporting Unicode in Windows has been discussed in #345 [1]. While I acknowledge UTF-16 is the native choice I thought it would be easier to pass around UTF-8 in the library, that way we wouldn't have to implement

Re: libcurl - windows / unicode filenames support...

2016-08-05 Thread Sergei Nikulov
2016-08-05 12:11 GMT+03:00 Rod Widdowson : > Aside, but curious minds need to know. > > As a newcomer here - can someone help me what "Unicode for windows" means? I > have to assume it is in URL handling, not files? The word UTF8 has to be the > give-away since UTF8

RE: libcurl - windows / unicode filenames support...

2016-08-05 Thread Rod Widdowson
Aside, but curious minds need to know. As a newcomer here - can someone help me what "Unicode for windows" means? I have to assume it is in URL handling, not files? The word UTF8 has to be the give-away since UTF8 is a pretty alien concept for windows at the k-mode interface (where I mostly

Re: libcurl - windows / unicode filenames support...

2016-08-05 Thread Daniel Stenberg
On Fri, 5 Aug 2016, Daniel Stenberg wrote: It is perfectly understandable that any single developer can only test and verify on one or a limited set of platforms, but that's not a big problem. Oh, and BTW, that's actually a motivation to send patches as pull-requests on github[1] instead of

Re: libcurl - windows / unicode filenames support...

2016-08-05 Thread Daniel Stenberg
On Fri, 5 Aug 2016, Tarmo Pikaro wrote: But it just gives you direction in where to dig, to get unicode supported - since I suspect it's wanted feature.  Thanks for your efforts. And yes, proper support for unicode on windows is wanted and has been requested before. We've touch this topic

Re: libcurl - windows / unicode filenames support...

2016-08-05 Thread Tarmo Pikaro via curl-library
to support others. (For me at least) -- Have a nice day!    Tarmo. From: Daniel Stenberg <dan...@haxx.se> To: Tarmo Pikaro <tap...@yahoo.com>; libcurl development <curl-library@cool.haxx.se> Sent: Thursday, August 4, 2016 4:21 PM Subject: Re: libcurl - windows /

Re: MBEDTLS debugging in libcurl [WAS: [PATCH] mbedtls: Rename mbedtls_debug info mbed_debug to match] debug function name

2016-08-04 Thread Daniel Stenberg
On Wed, 3 Aug 2016, Thomas Glanzmann wrote: Find attached another patch which sets the debug level to verbose and also explains in a comment in the source code what needs to be done to enable it bot in mbedtls and curl. Thanks, merged! -- / daniel.haxx.se

Re: [RELEASE] curl and libcurl 7.50.1 is out!

2016-08-04 Thread dev_user
Curl and libcurl 7.50.1 Public curl releases: 157 Command line options: 185 curl_easy_setopt() options: 224 Public functions in libcurl: 61 Contributors: 1425 So the progress report from my side looks like : 7.47.0 :TESTDONE: 771 tests out of 771

Re: Multi-threaded use of CPR / libcurl

2016-08-04 Thread Daniel Stenberg
On Thu, 4 Aug 2016, Mckinney, Lee wrote: Are there any known gotchas to curl_easy use in a thread pool context? Can you recommend a (better?) thread pool approach? There are no known problems with running libcurl in a multi-threaded environment as long as you follow the simple rules

Multi-threaded use of CPR / libcurl

2016-08-04 Thread Mckinney, Lee
We are trying to use CPR https://github.com/whoshuu/cpr in a multithreaded context. We are compiling with C++11 support, and CPR was built with libcurl 7.32. Each CPR operation (GET, POST, etc) seems to use curl_easy. We are queuing each CPR request as: pool->enqueue(*threadFunct

Re: libcurl - windows / unicode filenames support...

2016-08-04 Thread Daniel Stenberg
On Thu, 4 Aug 2016, Tarmo Pikaro via curl-library wrote: Windows unicode filenames support (In utf-8).  Front end changes (curl) - haven't made - only libcurl changes. Was not able to push into git - claims that I don't have permissions. As just discussed on IRC, this patch is much too

libcurl - windows / unicode filenames support...

2016-08-04 Thread Tarmo Pikaro via curl-library
Hi ! Windows unicode filenames support (In utf-8).  Front end changes (curl) - haven't made - only libcurl changes. Was not able to push into git - claims that I don't have permissions. -- Have a nice day!    Tarmo. 0001-Windows-Unicode-support-UTF-8-based-.-Changes-made-t.patch Description

[RELEASE] curl and libcurl 7.50.1 is out!

2016-08-03 Thread Daniel Stenberg
Hi team! I'm happy to announce another curl and libcurl release. This is a patch release mostly focused on correcting three security related problems that we're also announcing and detailing separately. As always, download the release tarballs from https://curl.haxx.se/ Curl and libcurl

Re: MBEDTLS debugging in libcurl [WAS: [PATCH] mbedtls: Rename mbedtls_debug info mbed_debug to match] debug function name

2016-08-03 Thread Thomas Glanzmann
Hello Ray, > Try putting a breakpoint on the function to see if it's called without > the right context? That's the only thing I can think of. > mbedtls_ssl_conf_dbg doesn't have a return code so we have to assume > it's always successful. Also you could ask in an mbedtls forum, maybe > they

Re: MBEDTLS debugging in libcurl [WAS: [PATCH] mbedtls: Rename mbedtls_debug info mbed_debug to match] debug function name

2016-08-03 Thread Ray Satiro via curl-library
On 8/1/2016 2:37 PM, Thomas Glanzmann wrote: >Regarding your other e-mail about why you aren't receiving debugging >info even with the fix maybe you built mbedTLS without >MBEDTLS_DEBUG_C? I had that_not_ enabled. Now that I have, I have still no additional debugging output: $ grep

Re: MBEDTLS debugging in libcurl [WAS: [PATCH] mbedtls: Rename mbedtls_debug info mbed_debug to match] debug function name

2016-08-01 Thread Thomas Glanzmann
Hello Ray, > Thanks, landed in aa9f536 [1]. thank you for comitting that so fast. > Regarding your other e-mail about why you aren't receiving debugging > info even with the fix maybe you built mbedTLS without > MBEDTLS_DEBUG_C? I had that _not_ enabled. Now that I have, I have still no

Re: Pause/Resume POST using libcurl-multi and libevent

2016-07-20 Thread Daniel Stenberg
the libcurl document, CURLOPT_XFERINFOFUNCTION callback wont be called in case of multi-curl interface when there is no transfer on the fd/handle. So the resume never happens. When you're using the multi interface you don't need to wait for a CURLOPT_XFERINFOFUNCTION callback, you can just call

Pause/Resume POST using libcurl-multi and libevent

2016-07-19 Thread Vivek S
Am using multi interface of libcurl and libevent2 in multi threaded Linux application. My application has two threads; first thread to listen for events on curl fds and read/write data, and second thread to feed data for POST/upload requests. Am using CURLOPT_READFUNCTION to read data from buffer

Re: Clear connection cache libcurl 7.44

2016-07-11 Thread Frank Meier
I also would be interested in a feature to manage the connection cache. My use-case is a bit different though. I like to cleanup connections which have already been closed from the server side. This "half-open" connections stay in the state "CLOSE_WAIT" (seen with netstat) and are only

Re: Clear connection cache libcurl 7.44

2016-07-07 Thread risto via curl-library
On Wednesday, July 6, 2016 11:12 PM, Daniel Stenberg wrote: On Tue, 5 Jul 2016, risto via curl-library wrote: > I've got a situation where connection cache is kept through internet > connection change (Wifi -> 3G for example). After network change cURL will > try to

Re: Clear connection cache libcurl 7.44

2016-07-06 Thread Daniel Stenberg
On Tue, 5 Jul 2016, risto via curl-library wrote: I've got a situation where connection cache is kept through internet connection change (Wifi -> 3G for example). After network change cURL will try to reuse the connection from cache and will fail and open a new connection. The problem is that

Re: Clear connection cache libcurl 7.44

2016-07-05 Thread Ray Satiro via curl-library
use connections when possible. I could force requests with CURLOPT_FRESH_CONNECT after network change for some time but that's not ideal. As far as I know there's no way to clear the connection cache. You could change handles as you mentioned. If the connection dies libcurl opens a new one as your out

Clear connection cache libcurl 7.44

2016-07-05 Thread risto via curl-library
Hi, What are the possible ways to clear cURL connection cache? One way would be to close the current multi handle and open a new one. Are there some other options? I've got a situation where connection cache is kept through internet connection change (Wifi -> 3G for example). After network

Re: MBEDTLS d5800b7761ad9705d2ebca86d7af0c8ee24e427a creates regression wher compiling libcurl error: unknown type name 'mbedtls_time_t'

2016-07-03 Thread Thomas Glanzmann
Hello Dan, * Dan Fandrich [2016-07-02 21:30]: > > /home/sithglan/work/vlconnect/curl/../local/win32/include/mbedtls/ssl.h:545:5: > > error: unknown type name 'mbedtls_time_t' > This looks like an mbedtls problem. A client #including an mbedtls > include file

Re: MBEDTLS d5800b7761ad9705d2ebca86d7af0c8ee24e427a creates regression wher compiling libcurl error: unknown type name 'mbedtls_time_t'

2016-07-02 Thread Dan Fandrich
On Sat, Jul 02, 2016 at 08:32:53PM +0200, Thomas Glanzmann wrote: > Hello, > when I compile libcurl with mbedtls-2.3.0 I hit the following libcurl > compile regression: > > In file included from ../lib/urldata.h:98:0, > from vtls/darwinssl.c:31: > /home/si

MBEDTLS d5800b7761ad9705d2ebca86d7af0c8ee24e427a creates regression wher compiling libcurl error: unknown type name 'mbedtls_time_t'

2016-07-02 Thread Thomas Glanzmann
Hello, when I compile libcurl with mbedtls-2.3.0 I hit the following libcurl compile regression: In file included from ../lib/urldata.h:98:0, from vtls/darwinssl.c:31: /home/sithglan/work/vlconnect/curl/../local/win32/include/mbedtls/ssl.h:545:5: error: unknown type name

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-28 Thread Daniel Stenberg
On Tue, 28 Jun 2016, 暖和的和暖 _ wrote: >Any feedback on this? Sorry for late reply. This patch solves the issue perfectly. Lovely! Thanks for confirming this, I've now landed it as commit b6ddc0ac07. -- / daniel.haxx.se--- List

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-27 Thread 暖和的和暖 _
On Mon, 27 Jun 2016, Daniel Stenberg wrote: > On Fri, 17 Jun 2016, 暖和的和暖 _ wrote: > >>Maybe here need to revise the "result" since the "err" cannot be fully >>trusted, something equals to > >> if(result == CURLE_OK) >> result = CURLE_SSH; > >> How about this patch? >Any

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-27 Thread Daniel Stenberg
On Fri, 17 Jun 2016, Daniel Stenberg wrote: On Fri, 17 Jun 2016, 暖和的和暖 _ wrote: Maybe here need to revise the "result" since the "err" cannot be fully trusted, something equals to if(result == CURLE_OK) result = CURLE_SSH; How about this patch? Any feedback on this?

Re: following redirects in libcurl

2016-06-18 Thread Daniel Stenberg
On Fri, 17 Jun 2016, Richard Gray wrote: if a broken server sent 3xx and no location header would that be some sort of error condition? Yes, I would say so. At least for the (5?) specific 3xx codes that mean redirect. So in general, is it correct to say that if a curl_easy_getinfo call

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-17 Thread Daniel Stenberg
sftp_libssh2_error_to_CURLE(err); -sshc->actualcode = result?result:CURLE_SSH; +if(err) + result = sftp_libssh2_error_to_CURLE(err); +else + result = CURLE_SSH; +sshc->actualcode = result; DEBUGF(infof(data, "error = %d makes

Re: following redirects in libcurl

2016-06-17 Thread Daniel Stenberg
. If CURLOPT_FOLLOWLOCATION is in effect, does the pointer still get set if a redirect occurred or set NULL if no redirect?? If libcurl is told to follow redirects it will go on itself, so not it doesn't return any redirect URL then. What is the persistence of the memory pointed to? (From other

following redirects in libcurl

2016-06-17 Thread Richard Gray
Hi all, I'm seeing the need to follow redirects in my application and so am looking at the related libcurl options. This has generated some questions on libcurl behavior. I'm interested in not only following the redirects (automagically or manually) but being able to log/debug out where

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-17 Thread 暖和的和暖 _
Maybe here need to revise the "result" since the "err" cannot be fully trusted, something equals to if(result == CURLE_OK) result = CURLE_SSH; > Ok, and as a libssh2 hacker I will appreciate that. But since this crash is > within libcu

Re: HTTP/2 support in libcurl

2016-06-17 Thread Tatsuhiro Tsujikawa
Hi, On Fri, Jun 17, 2016 at 9:05 PM, Daniel Stenberg wrote: > On Fri, 17 Jun 2016, David Weisgerber wrote: > > I would really appreciate if it was possible to compile nghttp2 for Visual >> Studio (2015). >> > > I'd urge you to get involved in the nghttp2 project to make sure

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-17 Thread Daniel Stenberg
didn't understand your problem. How does it end up crashing? The root cause is indeed in libssh2. I will report this to libssh2 development team. Ok, and as a libssh2 hacker I will appreciate that. But since this crash is within libcurl within an existing libssh2 release I think we need to also add

Re: HTTP/2 support in libcurl

2016-06-17 Thread Daniel Stenberg
On Fri, 17 Jun 2016, David Weisgerber wrote: I would really appreciate if it was possible to compile nghttp2 for Visual Studio (2015). I'd urge you to get involved in the nghttp2 project to make sure that comes true. -- / daniel.haxx.se

Re: HTTP/2 support in libcurl

2016-06-17 Thread David Weisgerber
Sailfish OS SDK was compiled without http/2 support. Is there a way to use > > this protocol with libcUrl? > > Of course! We've tried to sum up the HTTP/2 details here: > >https://curl.haxx.se/docs/http2.html ---

Re: HTTP/2 support in libcurl

2016-06-17 Thread Daniel Stenberg
On Fri, 17 Jun 2016, Petr Vytovtov wrote: I need to use http/2 protocol in my application, but unfortunately cUrl in Sailfish OS SDK was compiled without http/2 support. Is there a way to use this protocol with libcUrl? Of course! We've tried to sum up the HTTP/2 details here: https

HTTP/2 support in libcurl

2016-06-17 Thread Petr Vytovtov
Hello! I need to use http/2 protocol in my application, but unfortunately cUrl in Sailfish OS SDK was compiled without http/2 support. Is there a way to use this protocol with libcUrl? Thanks in advance! Regards, Petr--- List

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-16 Thread 暖和的和暖 _
On Tue, 15 Jun 2016, Daniel Stenberg via curl-library wrote: > Ah right. But isn't the root of this problem that sftp_libssh2_realpath() on > ssh.c:1145 returns a zero? Then libcurl doesn't clone the homedir and it > remains a NULL pointre that then subsequently is dereferenced. >

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-15 Thread Daniel Stenberg
On Wed, 15 Jun 2016, 暖和的和暖 _ wrote: It just returns 0. The libssh2 is from CentOS 7, shouldn't be too old. And I tried with latest source compiled libssh2, the result is same. Ah right. But isn't the root of this problem that sftp_libssh2_realpath() on ssh.c:1145 returns a zero? Then libcurl

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-14 Thread 暖和的和暖 _
On Tue, 14 Jun 2016, Daniel Stenberg via curl-library wrote: > Yes, it just sends a query to the server and the server may just return an > empty or malformatted string. > > The question is then rather why it would return a positive number if there was > ho home dir so no data was copied? >

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-14 Thread Daniel Stenberg
On Tue, 14 Jun 2016, Ray Satiro via curl-library wrote: rc = libssh2_sftp_symlink_ex(sshc->sftp_session, ".", strlen("."), tempHome, PATH_MAX-1, LIBSSH2_SFTP_REALPATH); The documentation allows for the case of

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-14 Thread 暖和的和暖 _
From: curl-library <curl-library-boun...@cool.haxx.se> on behalf of Ray Satiro via curl-library <curl-library@cool.haxx.se> Sent: Tuesday, June 14, 2016 2:58 PM To: curl-library@cool.haxx.se Cc: Ray Satiro Subject: Re: libcurl crahes when an SFTP server's home directory is n

Re: libcurl crahes when an SFTP server's home directory is non-exist

2016-06-14 Thread Ray Satiro via curl-library
On 6/14/2016 1:41 AM, ? _ wrote: I met a crash issue when using libcurl to download file from an SFTP server. The server software is Bitvise SSH server 6.47. Client is running on CentOS 7. The issue happens when I accidentally set a user's real root path

Re: Build libcurl with NSS support

2016-06-14 Thread Alex Bligh
On 13 Jun 2016, at 19:53, Cody Pritchard (cpritchard) wrote: > Can you give any help as to where I can find that pkg-config software? I have > done many searches on line for anything referencing it and have had no luck > so far. Really?

libcurl crahes when an SFTP server's home directory is non-exist

2016-06-14 Thread ????? _
Hello,   I met a crash issue when using libcurl to download file from an SFTP server. The server software is Bitvise SSH server 6.47. Client is running on CentOS 7. The issue happens when I accidentally set a user's real root path to an non-exsit directory

RE: Build libcurl with NSS support

2016-06-13 Thread Cody Pritchard (cpritchard)
brary-boun...@cool.haxx.se] On Behalf Of Marc Hoersken Sent: Monday, June 13, 2016 11:34 AM To: libcurl development <curl-library@cool.haxx.se> Subject: Re: Build libcurl with NSS support Hello everyone, Am 13.06.2016 um 20:22 schrieb Cody Pritchard (cpritchard) <cpritch...@micron.com<mailto

RE: Build libcurl with NSS support

2016-06-13 Thread Cody Pritchard (cpritchard)
of the dlls to be libssl3 and libsmime3, etc But I that was just a test to see if that was the issue and is not an actual fix. From: curl-library [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Marc Hoersken Sent: Monday, June 13, 2016 11:34 AM To: libcurl development <curl-libr

RE: Build libcurl with NSS support

2016-06-13 Thread Cody Pritchard (cpritchard)
> From the attached config.log it is obvious that there is no usable pkg-config > executable available in $PATH. The pkg-config executable is not going to be > installed by NSS. pkg-config is a standalone software > project that needs to be installed separately. > > On the other hand, NSS may

Re: Build libcurl with NSS support

2016-06-13 Thread Marc Hoersken
Hello everyone, > Am 13.06.2016 um 20:22 schrieb Cody Pritchard (cpritchard) > : > > But, towards the end it lists a bunch of warnings about linking errors to the > NSS libraries stating: > Warning: linker path does not have real file for library -lssl3. > I

Re: Build libcurl with NSS support

2016-06-13 Thread Kamil Dudka
tool will only create a static version of it. > > After this it continues compiling and goes to build all in > c:/BUILD/curl-7.49.0/src and hits an error and fails. > > I have attached my config.log file as Kamil requested. > > Thank you. > Cody. > > -Origina

RE: Build libcurl with NSS support

2016-06-13 Thread Cody Pritchard (cpritchard)
quested. Thank you. Cody. (Apologies for the duplicate reply. I replied to only Kamil by accident. Still learning how to use the forum) -Original Message- From: curl-library [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Daniel Stenberg Sent: Saturday, June 11, 2016 2:31 AM To: libcur

RE: Build libcurl with NSS support

2016-06-11 Thread Daniel Stenberg
On Thu, 9 Jun 2016, Cody Pritchard (cpritchard) wrote: I opened up the config script file and am looking at the conditional block you mentioned. So what you are saying is that it should have worked and compiled fine but something is going wrong? I was referrring to this:

Re: Build libcurl with NSS support

2016-06-10 Thread Kamil Dudka
rary [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of > Daniel Stenberg Sent: Thursday, June 09, 2016 2:47 PM > To: libcurl development <curl-library@cool.haxx.se> > Subject: Re: Build libcurl with NSS support > > On Thu, 9 Jun 2016, Cody Pritchard (cpritchard) wrote: > >

RE: Build libcurl with NSS support

2016-06-09 Thread Cody Pritchard (cpritchard)
that make needs? -Original Message- From: curl-library [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Daniel Stenberg Sent: Thursday, June 09, 2016 2:47 PM To: libcurl development <curl-library@cool.haxx.se> Subject: Re: Build libcurl with NSS support On Thu, 9 Jun 2016

Re: Build libcurl with NSS support

2016-06-09 Thread Daniel Stenberg
On Thu, 9 Jun 2016, Cody Pritchard (cpritchard) wrote: CClibcurl_la-file.lo In file included from file.c:50:0: urldata.h:123:18: fatal error: nspr.h: No such file or directory #include You run into trouble building with a custom NSS install path because you don't have a pkg-config for

Build libcurl with NSS support

2016-06-09 Thread Cody Pritchard (cpritchard)
Hello, I am working on building libcurl libraries with NSS for SSL/TLS support. I have built libcurl with OpenSSL and WinSSL no problem, but NSS is giving me trouble. This is what I get when I run the configure script: perl configure --without-zlib --without-ssl --with-nss=c:\BUILD\nss-3.24

Re: CoAP support in libcurl for the Internet of Things

2016-06-06 Thread Daniel Stenberg
On Mon, 6 Jun 2016, Joachim Bauernberger wrote: would there be any plans or roadmap to integrate support for CoAP in libcurl? It was once proposed in 2013[0] but it was very early stages back then. It has been proposed before, yes. I've not seen anyone get sold enough on the idea

Re: Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-06 Thread Ray Satiro via curl-library
curl-library <curl-library@cool.haxx.se <mailto:curl-library@cool.haxx.se>> wrote: On 6/5/2016 9:11 AM, Moti Avrahami wrote: Recently I upgraded libcurl to v7.49.0 and now I’m getting exception when connecting to some FTPS servers. The exception is about “

Re: Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-06 Thread Moti Avrahami
> wrote: > >> On 6/5/2016 9:11 AM, Moti Avrahami wrote: >> >> Recently I upgraded libcurl to v7.49.0 and now I’m getting exception when >> connecting to some FTPS servers. >> >> >> >> The exception is about “Access violation r

Re: Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-06 Thread Ray Satiro via curl-library
On 6/6/2016 4:01 AM, Moti Avrahami wrote: On Mon, Jun 6, 2016 at 5:53 AM, Ray Satiro via curl-library <curl-library@cool.haxx.se <mailto:curl-library@cool.haxx.se>> wrote: On 6/5/2016 9:11 AM, Moti Avrahami wrote: Recently I upgraded libcurl to v7.49.0 and now

CoAP support in libcurl for the Internet of Things

2016-06-06 Thread Joachim Bauernberger
Hi Daniel and all, would there be any plans or roadmap to integrate support for CoAP in libcurl? It was once proposed in 2013[0] but it was very early stages back then. Meanwhile the standardisation groups like W3C (WoT WG) and communities have come a long way building actual hands

Re: Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-06 Thread Moti Avrahami
On Mon, Jun 6, 2016 at 5:53 AM, Ray Satiro via curl-library < curl-library@cool.haxx.se> wrote: > On 6/5/2016 9:11 AM, Moti Avrahami wrote: > > Recently I upgraded libcurl to v7.49.0 and now I’m getting exception when > connecting to some FTPS servers. > > > >

Re: Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-05 Thread Ray Satiro via curl-library
On 6/5/2016 9:11 AM, Moti Avrahami wrote: Recently I upgraded libcurl to v7.49.0 and now I’m getting exception when connecting to some FTPS servers. The exception is about “Access violation reading location” and the callstack begin from mbedTLS.c in this function: void

Exception when runing libcurl v7.49.0 with mbedTLS

2016-06-05 Thread Moti Avrahami
Hello, I used libcurl v7.47.1 with mbedTLS (v2.2.1) as my TLS backend to connect FTPS servers and everything worked well. Recently I upgraded libcurl to v7.49.0 and now I’m getting exception when connecting to some FTPS servers. The exception is about “Access violation reading location

[RELEASE] curl and libcurl 7.49.1 is out!

2016-05-30 Thread Daniel Stenberg
Hi team! We decided we needed to ship a patch release to fix some of the mistakes that slipped into the previous release, and when doing this we also include a security fix for CVE-2016-4802 so check that out! As always, download curl from: https://curl.haxx.se/ Curl and libcurl 7.49.1

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-25 Thread Rajiullah Shammi
my results. In my tests, connection window turned out to be an important component. In this test, I concurrently requests a small number of resources (12) from the server over http2. I used both libcurl based client and the nghttp http2 client. By increasing the connection window size in the nghttp, I

Re: Page load time comparison between h1 and h2 using libcurl

2016-05-25 Thread Rajiullah Shammi
gt;> the number and size of the requests are taken from a real page). I did the >> same with h2 using a single connection. Both of the clients are made based >> on the example (10-at-a-time.c and http-download.c+https.c) given in >> libcurl page. Basically, I was expectin

Re: Error when building libcurl v7.49.0 with mbedTLS

2016-05-24 Thread Daniel Stenberg
On Tue, 24 May 2016, Moti Avrahami wrote: I tried to upgrade libcurl from v7.47.1 to v7.49.0 and encountered this build error : "LNK2019: unresolved external symbol _snprintf referenced in function _Curl_mbedtls_version" ... Does it a bug? Should I do something else to solve

Error when building libcurl v7.49.0 with mbedTLS

2016-05-24 Thread Moti Avrahami
Hello, I tried to upgrade libcurl from v7.47.1 to v7.49.0 and encountered this build error : "LNK2019: unresolved external symbol _snprintf referenced in function _Curl_mbedtls_version" After little investigating for trying to understand what have been changed from 7.4

Re: double free or corruption error on post with libcurl

2016-05-23 Thread Rahul Bhalerao
> > When firing multiple HTTPs requests in parallel, I get the following error >> : >> > > Are you following the threadsafety guidelines? > > https://curl.haxx.se/libcurl/c/threadsafe.html > > -- > > / daniel.haxx.se > --

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Tatsuhiro Tsujikawa
Hi, On Mon, May 23, 2016 at 9:28 PM, Daniel Stenberg wrote: > On Mon, 23 May 2016, Tatsuhiro Tsujikawa wrote: > > In my opinion, I recommend to keep using nghttp2's auto WINDOW_UPDATE >> feature while enlarging window size to 512MiB unless you'd want to >> implement custom

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Daniel Stenberg
On Mon, 23 May 2016, Tatsuhiro Tsujikawa wrote: In my opinion, I recommend to keep using nghttp2's auto WINDOW_UPDATE feature while enlarging window size to 512MiB unless you'd want to implement custom WINDOW_UPDATE scheduler. With large WINDOW_SIZE, nghttp2 will send WINDOW_UPDATE less

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Tatsuhiro Tsujikawa
Hi, On Mon, May 23, 2016 at 6:21 PM, Daniel Stenberg wrote: > On Mon, 23 May 2016, Rajiullah Shammi wrote: > > Just to inform, by shrinking the H2_BUFSIZE to 16K, I haven’t seen any >> improvement in my test (https://curl.haxx.se/mail/lib-2016-05/0080.html) >> > > Ah, yeah I was

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Daniel Stenberg
On Mon, 23 May 2016, Rajiullah Shammi wrote: Please stop the top-posting. I patched your patch on 7.49.x and strangely I found h2 creating a new connection for each new request, inflating the page load time. So, something must be wrong in the patch. I posted that patch to allow others (like

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Rajiullah Shammi
Hi Daniel! I patched your patch on 7.49.x and strangely I found h2 creating a new connection for each new request, inflating the page load time. So, something must be wrong in the patch. \ Mohd. Rajiullah On Mon, May 23, 2016 at 11:21 AM, Daniel Stenberg wrote: > On Mon, 23

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Daniel Stenberg
On Mon, 23 May 2016, Rajiullah Shammi wrote: Just to inform, by shrinking the H2_BUFSIZE to 16K, I haven’t seen any improvement in my test (https://curl.haxx.se/mail/lib-2016-05/0080.html) Ah, yeah I was sort of suspecting that it wouldn't make anything better when using many streams. What

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-23 Thread Rajiullah Shammi
Hi! Just to inform, by shrinking the H2_BUFSIZE to 16K, I haven’t seen any improvement in my test (https://curl.haxx.se/mail/lib-2016-05/0080.html) \ Mohd. Rajiullah On Sat, May 21, 2016 at 7:49 PM, Daniel Stenberg wrote: > On Thu, 19 May 2016, Ganesh Nikam wrote: > > are

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-21 Thread Daniel Stenberg
On Thu, 19 May 2016, Ganesh Nikam wrote: are there any configuration changes that can improve HTTP 2.0 performance in above scenarios ? It reminded me that we talked about HTTP/2 window handling a while ago (like here https://curl.haxx.se/mail/lib-2016-03/0126.html) and I can measure a

Re: double free or corruption error on post with libcurl

2016-05-21 Thread Daniel Stenberg
On Fri, 20 May 2016, Rahul Bhalerao wrote: When firing multiple HTTPs requests in parallel, I get the following error : Are you following the threadsafety guidelines? https://curl.haxx.se/libcurl/c/threadsafe.html -- / daniel.haxx.se

double free or corruption error on post with libcurl

2016-05-21 Thread Rahul Bhalerao
Hello, When firing multiple HTTPs requests in parallel, I get the following error : double free or corruption (!prev): 0x01099630 *** Aborted (core dumped) Is this a known issue, or are there best practices of using lib curl in 100's of parallel threads which can help get around this?

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-20 Thread Rajiullah Shammi
Hi Daniel! It didn't start a new connection in my case for sure. Mohd. Rajiullah On Thu, May 19, 2016 at 11:11 PM, Daniel Stenberg wrote: > On Thu, 19 May 2016, Rajiullah Shammi wrote: > > What I can deduce from what I saw in the encrypted traces, in h2 >> coversation, client

Aw: Re: (Secure) Websockets using libcurl

2016-05-19 Thread Patrick Rathje
> If I assume that there is no other way of achieving the reuse of an open > TCP-Connection between two handles: > Is there a way to parse the HTTP-Headers using the built-in libcurl > functions? Or does one have to parse the Headers manually? I thought about this and it wou

Re: HTTP 2.0 performance is slower than HTTP 1.1 in libcurl

2016-05-19 Thread Daniel Stenberg
On Thu, 19 May 2016, Rajiullah Shammi wrote: What I can deduce from what I saw in the encrypted traces, in h2 coversation, client server does key exchange (SSL) / similar thing in every now and then that really inflates the number of RTTs. That sounds like it dropped the connection or at

Re: [RELEASE] curl and libcurl 7.49.0

2016-05-19 Thread Jan Ehrhardt
Steve Holme in gmane.comp.web.curl.library (Thu, 19 May 2016 21:27:42 +0100): >nmake /f Makefile.vc mode=static VC=14 ENABLE_SSPI=yes ENABLE_IPV6=yes \ > ENABLE_IDN=yes ENABLE_WINSSL=yes DEBUG=no MACHINE=x64 The PHP devs use WITH_SSL=dll ENABLE_WINSSL=no. See https://github.com/winlibs/cURL

Re: [RELEASE] curl and libcurl 7.49.0

2016-05-19 Thread Jan Ehrhardt
Daniel Stenberg in gmane.comp.web.curl.library (Thu, 19 May 2016 08:55:22 +0200 (CEST)): >On Thu, 19 May 2016, Jan Ehrhardt wrote: > >> Both errors are no big deal, but I was surprised that the winbuild scripts >> failed all of a sudden. > >I guess it proves that they're not used very much

<    5   6   7   8   9   10   11   12   13   14   >