How can I get SSL server certificate info from libcurl when a handshake fails?

2013-12-22 Thread Ray Satiro
How can I get SSL server certificate info from libcurl when a handshake fails? For the server, using a cert that will fail verification for example: socat openssl-listen:4433,reuseaddr,cert=fail.pem,verify=0,fork - For the client, using libcurl 7.33.0:     curl_easy_setopt(curl, CURLOPT_VERBOSE

curl_off_t to long compiler warnings in visual studio 2010 x86

2014-01-01 Thread Ray Satiro
2>..\..\curl\lib\file.c(542): warning C4244: 'function' : conversion from 'curl_off_t' to 'long', possible loss of data    lseek(fd, data->state.resume_from, SEEK_SET)) 104>..\..\curl\src\tool_cb_see.c(82): warning C4244: 'function' : conversion from 'curl_off_t' to 'long', possible loss of

Re: CURLOPT_PROXYHEADER getting closer

2014-02-20 Thread Ray Satiro
On 2/20/2014 12:11 PM, Daniel Stenberg wrote: So here's my latest version of the patch set for CURLOPT_PROXYHEADER. Now at 7 patches, including 5 new test cases and updated documentation. I'm curious why not use branches on github for things like this? -

Re: CURLOPT_PROXYHEADER getting closer

2014-02-20 Thread Ray Satiro
On 2/20/2014 5:38 PM, Daniel Stenberg wrote: On Thu, 20 Feb 2014, Ray Satiro wrote: I'm curious why not use branches on github for things like this? Would that really make code reviewing or commenting of my patches easier? I always have like 30 local branches with development and bug-f

Re: time to remove {src,lib}/Makefile.vc* ?

2014-03-28 Thread Ray Satiro
On 3/28/2014 2:07 PM, Steve Holme wrote: Am I right in thinking that we "currently" support building MSVC from makefiles via: * makefile.dist - as per testcurl.pl * makefile.vc6 * winbuild\makefilw.vc What about cmake, is that method still supported for MSVC? Several months ago Daniel said it w

Re: Issue with IMAP UID FETCH

2014-05-06 Thread Ray Satiro
On 5/5/2014 2:06 PM, Steve Holme wrote: I think the areas we need to look at are as follows: * Fixed libcurl FETCH API (as you suggested in Option A) * Change the LIST command be driven off CURLOPT_DIRLISTONLY * Change current custom commands to be an override of LIST * Implement custom command

Re: HTTPS-request with custom root-certificate?

2014-05-07 Thread Ray Satiro
On 5/7/2014 2:19 AM, Satz Klauer wrote: But I could provide the related root-certificate during the request. So: how can this be done using libcurl? How should code for a HTTPS-POST-request look like when a custom root-certificate is used? Did you try CURLOPT_CAINFO? curl_easy_setopt( hnd, CURL

Re: Issue with IMAP UID FETCH

2014-05-07 Thread Ray Satiro
On 5/6/2014 6:53 PM, Steve Holme wrote: On Tue, 06 May 2014, Ray Satiro wrote: I think the areas we need to look at are as follows: * Fixed libcurl FETCH API (as you suggested in Option A) * Change the LIST command be driven off CURLOPT_DIRLISTONLY * Change current custom commands to be an

Re: Issue with IMAP UID FETCH

2014-05-08 Thread Ray Satiro
On 5/8/2014 3:21 AM, Dionysios Kalofonos wrote: On 5/7/14, 10:14 PM, Ray Satiro wrote: I'll probably keep issuing custom commands because of my requirements. With a regular SEARCH I can't get exactly what I want but that's my problem. If you're going to make changes to FE

Re: first 94208 bytes corrupted! (Ubuntu 14)

2014-05-23 Thread Ray Satiro
Can you please give a short self contained example that can be compiled outright? On Friday, May 23, 2014 4:17 PM, Wagner Patriota wrote: A little more of Ubuntu 14... I have a download just like any other download... ... FILE * file = fopen( "/path/to/file", "wb+" ); curl_easy_setopt( c

excessive bounces?

2014-06-04 Thread Ray Satiro
I got an e-mail this evening that my subscription to this mailing list was disabled due to excessive bounces. I reactivated it. I wonder if anyone else is experiencing the same thing (esp yahoo users). Here is the message I received: Your membership in the mailing list curl-library has been di

Re: excessive bounces?

2014-06-05 Thread Ray Satiro
Thanks for the information guys. Short of leaving yahoo I'm not sure what else I can do as a user. There are some complaints about this on uservoice but they've closed out most of them. Here's one that isn't closed so I voted for it: https://yahoo.uservoice.com/forums/210695-yahoo-mail/suggesti

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-07 Thread Ray Satiro
On 6/6/2014 3:15 PM, Jonathan C. wrote: It should, yes. If it behaves differently at any point I would consider that room for improvement! I'm sending as attachment a code that is acting odd, at least here. The progress callback is called two times, I'm using libcurl 7.36. E:\curl-issue\build

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-09 Thread Ray Satiro
On 6/9/2014 6:01 PM, Daniel Stenberg wrote: On Sat, 7 Jun 2014, Ray Satiro wrote: Returning a non-zero value from this callback will cause libcurl to abort the transfer and return CURLE_ABORTED_BY_CALLBACK. That implies to me at least that a progress function would not be called again if it

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-11 Thread Ray Satiro
On 6/10/2014 5:34 PM, Daniel Stenberg wrote: On Mon, 9 Jun 2014, Ray Satiro wrote: -res = Curl_done(&data->easy_conn, CURLE_OK, FALSE); +res = Curl_done(&data->easy_conn, data->result, FALSE); Ah yes, that's indeed a suitable change. Thanks! After th

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-11 Thread Ray Satiro
On 6/11/2014 3:14 AM, Ray Satiro wrote: On 6/10/2014 5:34 PM, Daniel Stenberg wrote: On Mon, 9 Jun 2014, Ray Satiro wrote: -res = Curl_done(&data->easy_conn, CURLE_OK, FALSE); +res = Curl_done(&data->easy_conn, data->result, FALSE); Ah yes, that's in

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-13 Thread Ray Satiro
On 6/13/2014 5:45 PM, Daniel Stenberg wrote: On Wed, 11 Jun 2014, Ray Satiro wrote: - if(Curl_pgrsDone(conn) && !result) + if((status != CURLE_ABORTED_BY_CALLBACK) && Curl_pgrsDone(conn) && !result) result = CURLE_ABORTED_BY_CALLBACK; Oops. I wanted th

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-06-15 Thread Ray Satiro
On 6/14/2014 5:42 PM, Daniel Stenberg wrote: On Sat, 14 Jun 2014, Ray Satiro wrote: think we should call the progress callback again. Basically that could lead to the similar problem: return an error from another callback and yet you get the progress callback called again. Ok that works on

Re: custom post

2014-06-21 Thread Ray Satiro
On 6/21/2014 10:52 AM, Dung Nguyen wrote: hmm, seem something wrong... i had log the data and upload here : https://www.dropbox.com/sh/g5nqod16tic7gdb/AADb17Klw0vXFux7iX8HGlhGa if curl sent exactly the post field then maybe i did sent wrong format to flickr 2014-06-21 19:31 GMT+07:00 Daniel

Re: custom post

2014-06-21 Thread Ray Satiro
On 6/21/2014 1:44 PM, Dung Nguyen wrote: thanks, i'll try it now If you still have problems you could post a self contained example (ie a simple pared down example that demonstrates the problem and can be easily compiled) so that people on the mailing list can use it to reproduce and that w

Re: libcurl multi handle and FTP download

2014-06-23 Thread Ray Satiro
On 6/23/2014 10:47 AM, Pramod Sharma wrote: Hello, I am getting crash while downloading via FTP and using curl(7.35.0) multi handle. I am using libuv for event library and using the sample posted in "http://curl.haxx.se/libcurl/c/multi-uv.html";. Did you use the sample as is? I had to modify

Re: Is it normal to the progress callback be called once again after returning non-zero value?

2014-07-01 Thread Ray Satiro
On 7/2/2014 1:02 AM, Jonathan C. wrote: Sorry for being a little late, but, what was the conclusion here? And should I keep using a flag to check if the callback was already called? My understanding is the behavior will be changed so that the progress callback will not be called again should

Re: replace psftp for curl.exe

2014-07-02 Thread Ray Satiro
On 7/2/2014 9:35 AM, Hilgersom, Danny wrote: Hi, We are using curl.exe as a command line tool on the Windows platform. For SSH FTP connections we use psftp.exe. We want to simplify our ftp tooling and therefore we want to use curl also as our primary SSH FTP tool. Form what I could find, you

Re: Error when doing FTP upload via http_proxy tunnel: "Transferred a partial file"

2014-07-02 Thread Ray Satiro
On 6/30/2014 11:23 PM, Ramprasad N wrote: Hi, The uploaded file is 34600 bytes smaller When I tried uploading another file it was 64488 bytes smaller This happens for all files. The last few bytes never reaches the server. But the same files are getting uploaded well by using FileZilla client T

Re: Error when doing FTP upload via http_proxy tunnel: "Transferred a partial file"

2014-07-10 Thread Ray Satiro
On 7/9/2014 5:24 AM, Ramprasad N wrote: Following is my build system configuration (64bit ubuntu 12.04). The customer's configuration is also the same but just that it is behind an unknown proxy server. uname -a Linux ramprasad-VirtualBox 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC

Re: curl_easy_perform() occasionally not failing immediately from progress callback (test 1513)

2014-07-11 Thread Ray Satiro
On 7/10/2014 10:02 AM, Fabian Keil wrote: Recently I noticed that test 1513 is unreliably on FreeBSD 11-CURRENT, occasionally failing What commit are you using? Some changes were recently made here: https://github.com/bagder/curl/commit/907520c If the commit is earlier would you mind testing wi

Re: libcurl 7.37.1 and OpenSSL 1.0.1h: crashes on initialization on certain Windows 7 systems

2014-08-14 Thread Ray Satiro
On 8/14/2014 2:34 PM, Ulrich Telle wrote: Recently I upgraded to libcurl 7.37.1 and OpenSSL 1.0.1h. Now my application doesn't start anymore, but terminates immediately with a process exit code of 1 (0x1) without showing any error message. However, this happens only on certain Windows 7 system,

Re: lib1513 returned 7, when expecting 42

2014-08-21 Thread Ray Satiro
On 8/21/2014 10:34 AM, dev wrote: I have been running nightly autobuilds for a few months and I do glance at the results from time to time. Which is to say I have neglected to follow up :-) and really fix or try to fix or single step or do something dammit on the only test failure I see on S

Re: lib1513 returned 7, when expecting 42

2014-08-21 Thread Ray Satiro
On 8/21/2014 1:39 PM, Ray Satiro wrote: CURLOPT_TIMEOUT has a documented return value of CURLE_OK [2]. If the timeout can occur at any point, how can any return code be guaranteed; or why should any return code be guaranteed? (Real question not rhetorical). Well, to answer my own question, I

Re: Call for libcurl cmake users/maintainers!

2014-08-25 Thread Ray Satiro
On 8/25/2014 6:46 AM, Daniel Stenberg wrote: On Wed, 20 Aug 2014, Daniel Stenberg wrote: We are willing to proceed on this but first it'd be nice to get some feedback. I tried to keep the changes as small, easy-to-review commits. That's lovely. I'm not personally a suitable reviewer for cmake

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

Files in repo with mixed line endings

2014-09-11 Thread Ray Satiro
I use the curl repo mainly on Windows with the typical Windows git checkout which converts the LF line endings in the curl repo to CRLF automatically on checkout. The automatic conversion is not done on files in the repo with mixed line endings. I recently noticed some weird output with project

Re: Files in repo with mixed line endings

2014-09-13 Thread Ray Satiro
On 9/13/2014 8:07 AM, Marc Hoersken wrote: On 12.09.2014 um 10:25 Daniel Stenberg wrote: On Thu, 11 Sep 2014, Ray Satiro wrote: Attached is a patch which changes all CRLF line endings to LF in the three scripts with mixed line endings. Thanks! Diffs are really bad at handling newlines so

windows: libidn or USE_WIN32_IDN? what effect does libiconv have on curl?

2014-09-14 Thread Ray Satiro
I'm building libcurl in Windows in Visual Studio and I'm going to enable IDN support. I notice there is USE_WIN32_IDN which I don't have defined. Also there is libidn which I may use instead since the normalize dll (native win32 idn stuff) is not on xp (although it's redistributable). A few ques

Re: Sporadic "Couldn't resolve host" error on windows with libcurl 7.30.0

2014-09-22 Thread Ray Satiro
On 9/22/2014 4:42 PM, arif khan wrote: Date: Sat, 20 Sep 2014 23:35:38 +0200 (CEST) From: Daniel Stenberg mailto:dan...@haxx.se>> On Fri, 19 Sep 2014, arif khan wrote: > To narrow down the problem I wrote a multi-threaded app which runs 100 > threads, in each thread if

Re: Doubts with libcurl and windows server 2008

2014-10-08 Thread Ray Satiro
On 10/8/2014 6:28 AM, Juan Manuel Fernández wrote: My name is John, I'm working in a proyect with your library. I tested my proyect in multiple computers, with the SO windows server 2003 and others with windows XP and it´s work fine. But now I need run the same proyect in a computer with window

Re: Doubts with libcurl and windows server 2008

2014-10-10 Thread Ray Satiro
On 10/10/2014 3:41 AM, Juan Manuel Fernández wrote: I´m going to aswer at your questions. I don´t have the VS2005 in the computer. I built the DLL in a computer with windows server 2005 and the method used was the file proyect generator.Attached at email a printscreen with the error. There i

SSLv3 fallback attack POODLE

2014-10-15 Thread Ray Satiro
I read today of a new method to decrypt SSL called POODLE. If you haven't read of it you should. It works by using SSL fallback behavior to get SSLv3 which can now be decrypted [1][2]. I'm looking into different libcurl SSL backends and this attack. Immediately one can use CURLOPT_SSLVERSION w

Re: SSLv3 fallback attack POODLE

2014-10-15 Thread Ray Satiro
On 10/15/2014 2:58 AM, Ray Satiro wrote: I read today of a new method to decrypt SSL called POODLE. If you haven't read of it you should. It works by using SSL fallback behavior to get SSLv3 which can now be decrypted [1][2]. To be more correct on this POODLE "allows a network a

Re: SSLv3 fallback attack POODLE

2014-10-15 Thread Ray Satiro
On 10/15/2014 12:26 PM, Mark Adams wrote: My understanding is that SSL_MODE_SEND_FALLBACK_SCSV should be set if and only if the TLS/SSL session being established is itself an attempt to establish a connection with a fallback TLS/SSL version following a previous handshake failure. It should not

Re: SFTP problems

2014-10-19 Thread Ray Satiro
On 10/19/2014 4:43 AM, Daniel Karunairatnam wrote: Hi guys, I'm trying to use libcurl in Visual Studio Express C++ 2010 (Windows 8) to upload and append files to an sftp server. I am using the following code (taken from http://curl.haxx.se/libcurl/c/sftpget.html, with a few changes). ...

Re: SFTP problems

2014-10-21 Thread Ray Satiro
On 10/21/2014 8:55 AM, Guenter wrote: Hi Daniel, On 21.10.2014 13:35, Daniel Karunairatnam wrote: is it the 3.34MB file under win32-generic on this page? http://curl.haxx.se/download.html are you running windows 8? and if it is that file. how do I compile the example code? there is

Re: SFTP problems

2014-10-22 Thread Ray Satiro
On 10/22/2014 10:32 AM, Gisle Vanem wrote: "Daniel Karunairatnam" wrote: okay, so i opened one of those. but the librarian node isn't there. Which configuration do i need to change it to to access the librarian node? The instructions in the link you posted before require some changes there.

Re: SSLv3 fallback attack POODLE

2014-10-24 Thread Ray Satiro
On 10/24/2014 7:44 AM, Daniel Stenberg wrote: On Fri, 24 Oct 2014, Kamil Dudka wrote: Should I unimplement the fallback to SSL 3.0 in the NSS backend now, or wait till Ray's patch appears upstream? I'm digging up Ray's patch just now and I've pushed it! Two more to look at, GSKit and PolarSS

Re: SFTP problems

2014-10-24 Thread Ray Satiro
On 10/24/2014 6:30 AM, Daniel Karunairatnam wrote: I am able to build libssh2, but the instructions at [2] above refer to the librarian node when compiling libcurl. there is a linker node but not a librarian node when I open the 2010 libcurl.vcxproj file? There is no longer a lib/libcurl.vcpro

Re: SFTP problems

2014-10-27 Thread Ray Satiro
On 10/24/2014 3:59 PM, Ray Satiro wrote: On 10/24/2014 6:30 AM, Daniel Karunairatnam wrote: I am able to build libssh2, but the instructions at [2] above refer to the librarian node when compiling libcurl. there is a linker node but not a librarian node when I open the 2010 libcurl.vcxproj

Re: Avoiding creation of multiple connections to an http capable server before CURLMOPT_MAX_PIPELINE_LENGTH is reached.

2014-10-30 Thread Ray Satiro
On 10/30/2014 9:32 PM, Carlo Wood wrote: Note that English is not my first language. If the text below sounds awkward at times, then that is the reason. I assure you that I'm a very capable coder with decades of networking experience, despite that fact and hope you are willing to over look this,

Re: SSLv3 fallback attack POODLE

2014-11-02 Thread Ray Satiro
On 10/24/2014 2:57 PM, Ray Satiro wrote: PolarSSL has SSLv3 support by default unless it's changed at compile time. It is the minimum version: #define SSL_MIN_MAJOR_VERSION SSL_MAJOR_VERSION_3 #define SSL_MIN_MINOR_VERSION SSL_MINOR_VERSION_0 According to the PolarSSL advisory that c

Re: SSLv3 fallback attack POODLE

2014-11-03 Thread Ray Satiro
On 11/3/2014 3:07 AM, Daniel Stenberg wrote: On Mon, 3 Nov 2014, Ray Satiro wrote: I can't find that I got any feedback on this PolarSSL change and it doesn't look as though it ever made it to the central repo. I know the next curl release is a few days away. If there's a prob

Re: SSLv3 fallback attack POODLE

2014-11-04 Thread Ray Satiro
On 11/4/2014 9:26 AM, moparisthebest wrote: On 11/04/2014 05:42 AM, Daniel Stenberg wrote: we should do something about test 2035 which now fails when run on any TLS backend without certificate pinning support, like PolarSSL... The tests have a 'dependency' type of setup as far as requiring SSL

Re: SSLv3 fallback attack POODLE

2014-11-04 Thread Ray Satiro
On 11/4/2014 5:42 AM, Daniel Stenberg wrote: Thanks a lot, merged and pushed just now! I took a look and AFAICT all changes to disable SSLv3 by default in all SSL backends are now in the central repo. One nagging thing though from my original post, I still don't understand why CyaSSL cannot b

Re: SSLv3 fallback attack POODLE

2014-11-04 Thread Ray Satiro
On 11/4/2014 4:51 PM, Todd A Ouska wrote: On Nov 4, 2014, at 10:58 AM, Ray Satiro wrote: On 11/4/2014 5:42 AM, Daniel Stenberg wrote: Thanks a lot, merged and pushed just now! I took a look and AFAICT all changes to disable SSLv3 by default in all SSL backends are now in the central repo

Re: [PATCH] openssl: make it possible to build without SSLv3

2014-11-08 Thread Ray Satiro
On 11/8/2014 9:23 AM, Alessandro Ghedini wrote: Just like it's possible for SSLv2. I'm under the impression it's possible regardless. Following the changes to disable SSLv3 by default at one point I had tested against OpenSSL built with no-ssl3 and when I tried SSLv3 in curl I received an un

Re: [PATCH] openssl: make it possible to build without SSLv3

2014-11-10 Thread Ray Satiro
On 11/9/2014 4:36 PM, Guenter wrote: Hi Ray, On 08.11.2014 20:43, Ray Satiro wrote: I'm under the impression it's possible regardless. Following the changes to disable SSLv3 by default at one point I had tested against OpenSSL built with no-ssl3 and when I tried SSLv3 in curl I r

Re: LibCurl Unicode conversion

2014-11-10 Thread Ray Satiro
On 11/10/2014 8:41 AM, Test Dev wrote: I am using imap of libcurl and getting unicode response from SSL_READ function. What is the best way to convert the response in wchar_t to get correct unicode string? Is Any option available inside the libcurl to do conversion inside the library? Can you

Re: [PATCH] openssl: make it possible to build without SSLv3

2014-11-10 Thread Ray Satiro
On 11/10/2014 7:17 AM, Alessandro Ghedini wrote: On lun, nov 10, 2014 at 03:13:21 -0500, Ray Satiro wrote: I just tried OpenSSL 1.0.1j no-ssl3 and if I pass -3 to curl I still get a SSLv3 client hello and connection. Yeah. The thing about no-ssl3 is that AFAICT, it only disables SSLv3 when

Re: Protecting against inner library security bugs

2014-11-11 Thread Ray Satiro
On 11/11/2014 4:03 PM, myriac...@cox.net wrote: Does libcurl have a policy on having code to protect against bugs being exploited in lower-level libraries? For example, this Windows SChannel bug: https://technet.microsoft.com/library/security/MS14-066 It's an interesting question that I suppo

Re: How to force usage TLS instead of SSL

2014-11-12 Thread Ray Satiro
On 11/12/2014 11:46 PM, Praveen Pvs wrote: Due to SSL3 POODLE vulnerability (http://security.stackexchange.com/questions/70719/ssl3-poodle-vulnerability), i was asked to use TLS instead of SSL. I was wondering how to set these options, could any one help me with which options i need to set to

Re: Select returns -1 on all the multi examples in win32

2014-11-14 Thread Ray Satiro
On 11/13/2014 1:59 PM, Daniel Stenberg wrote: On Thu, 13 Nov 2014, JOHAN LANTZ wrote: However moving to the multi examples, I do not manage to download anything. There are no errors for the api calls setting things up but I always end up at this print: printf("select() returns error, this is

Re: Select returns -1 on all the multi examples in win32

2014-11-15 Thread Ray Satiro
On 11/15/2014 3:33 PM, Daniel Stenberg wrote: On Fri, 14 Nov 2014, Ray Satiro wrote: I have attached a patch which fixes the multi examples for use on Windows by sleeping 100ms whenever curl_multi_fdset() doesn't set any file descriptors. I also added a check on its return value because

Re: Select returns -1 on all the multi examples in win32

2014-11-17 Thread Ray Satiro
On 11/16/2014 5:57 AM, Daniel Stenberg wrote: On Sat, 15 Nov 2014, Ray Satiro wrote: Ok. To state the obvious the timeout behavior is different depending on platform now. In the case of platforms other than Windows if there are no fds select() will still sleep whatever is in timeout, which

Re: curl_multi_perform and write_callback

2014-11-17 Thread Ray Satiro
On 11/17/2014 11:15 PM, Jeroen Ooms wrote: An additional question: in the getinmemory.c example [1], why does realloc allocate 1 byte more than needed and than sets it to 0 at the end of the callback? The help page for CURLOPT_WRITEFUNCTION says "The data passed to this function will not be zero

Re: Select returns -1 on all the multi examples in win32

2014-11-19 Thread Ray Satiro
On 11/19/2014 7:45 AM, Daniel Stenberg wrote: On Mon, 17 Nov 2014, Ray Satiro wrote: The multi examples other than multi-single don't follow the documented cleanup order [1]. It would of course be nice to get them to use the proper order as well. The order is more a SHOULD than MUST t

[PATCH] examples: Get pedantic about initialization and cleanup

2014-11-24 Thread Ray Satiro
These changes make the examples reflect what is API documented regarding initialization and cleanup. All examples will now: - Call curl_global_init immediately after the program starts. - Call curl_global_cleanup immediately before the program exits. - Call curl_easy_cleanup for each easy handl

Re: Cannot get curllib to work with Visual C++ 11

2014-11-25 Thread Ray Satiro
On 11/25/2014 11:34 AM, Jon wrote: I’m new to curllib and cannot get the libraries to work with Visual C++ v11.0. I downloaded v7.36 (32-bit) a couple of months ago and compiled it to a .lib file (note I wasn’t able to create a .dll). When I put the .lib file into my library path and called

Re: embedded linux libcurl upload data inactivity timeout not working

2014-12-08 Thread Ray Satiro
On 12/8/2014 12:33 PM, John Coffey wrote: FYI I found the bug um... can you tell us please? :) --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: Not able to build curl on Windows using VS2008.

2014-12-10 Thread Ray Satiro
On 12/10/2014 1:41 AM, Arif Ali wrote: On Tue, Dec 9, 2014 at 4:53 PM, Guenter > wrote: Hi Arif, here's a quick way without fancy GUI which works: 1) open a "Visual Studio 2008 command prompt" 2) change dir to the root of your extracted curl-7.39.0 source

Re: long timeout after a lost connection (curl 7.39, windows)

2014-12-15 Thread Ray Satiro
On 12/15/2014 5:58 AM, чи дер wrote: So hasn't anyone come across this issue or was the info I provide too obscure to make any conclusions? Could you post a self contained example? Something simple that is pared down and will demonstrate the problem. I did: easy_perform to google.com slee

Re: disable sslv3 on compile of older version of curl (or OpenSSL)

2014-12-31 Thread Ray Satiro
On 12/31/2014 12:46 PM, Rob Sharkey wrote: Is there a way to disable SSLv3 and force tls during ./configure of curl 7.19.4 ? [UPDATE; or in ./Config for OpenSSL 0.9.8k] or any other ideas for ensuring TLS is used. The current setup fails connections when it tries to use SSLv3, which is most

Re: how to enable SSLv3 in libcurl 7.39

2015-01-01 Thread Ray Satiro
On 1/1/2015 3:44 AM, Peng "Terry" Wang wrote: Happy new year! Since sslv3 disable by default in 7.39, Could you please point out how to explicit enable sslv3? The method below doesn't work. /* ask libcurl to use SSLv3 or later */ curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_S

Re: how to enable SSLv3 in libcurl 7.39

2015-01-02 Thread Ray Satiro
On 1/2/2015 3:46 AM, Dan Fandrich wrote: On Fri, Jan 02, 2015 at 02:45:32AM -0500, Ray Satiro wrote: CURL_SSLVERSION_SSLv3 is exclusively SSLv3 [1]. There is no longer a define for SSLv3 or later. The default is now TLS 1.0 or later. I have attached a patch that adds legacy support for

Re: how do i post json to a https ?

2015-01-09 Thread Ray Satiro
On 1/9/2015 11:03 AM, redmond wrote: though im unfamilar with C/C++,i have wrote the following code with libcurl docs,how do i post the json on https(the ssl website has no cert,just like https://www.google.com,it don't need the cert)?i search google for this,however there is no answer.i tried

Re: how do i post json to a https ?

2015-01-10 Thread Ray Satiro
On 1/9/2015 11:25 PM, redmond wrote: with all your recommandation,i have modified my code,please take a look at my code,is it correct?i reference the code from https://github.com/polyu/Cloud_Game/blob/master/ClientGUI/GUI/httpclient.cpp Before you do anything else please review the libcurl doc

[PATCH] opts: CURLOPT_CAINFO availability depends on SSL engine

2015-01-10 Thread Ray Satiro
It isn't documented in the CURLOPT_CAINFO option [1] that its availability depends on the SSL engine. Also I have some other patches from [2] I didn't hear back about. gskit: Fix exclusive SSLv3 option polarssl: Fix exclusive SSL protocol version options SSL: Legacy support for SSLv3 or later

Re: how to enable SSLv3 in libcurl 7.39

2015-01-10 Thread Ray Satiro
On 1/2/2015 12:42 PM, Ray Satiro wrote: On 1/2/2015 3:46 AM, Dan Fandrich wrote: Also, a big no-no: this patch seems to enable SSLv2 for the Cyassl back-end when the new option is used. Well, no, it shouldn't do that. CyaSSL has logic very similar to OpenSSL in that the protocol version

Re: Building libcurl 7.57 on Windows

2018-02-02 Thread Ray Satiro
On 2/2/2018 3:03 PM, Alex Chen wrote: > > version.obj : error LNK2019: unresolved external symbol _zlibVersion > referenced in function _curl_version > > content_encoding.obj : error LNK2001: unresolved external symbol > _zlibVersion > > content_encoding.obj : error LNK2019: unresolved external sym

Re: SASL LOGIN mechanism

2018-02-14 Thread Ray Satiro
On 2/13/2018 7:48 PM, Patrick Monnerat wrote: > I've recently been facing a special case: a pop3 server (dovecot) with > a TLS-upgraded connection and client certificate does not require the > password when the LOGIN authentication mechanism is used, effectively > behaving as if it was an EXTERNAL

Re: github issue #2161

2018-02-22 Thread Ray Satiro
On 2/22/2018 1:02 PM, Maroš Priputen wrote: > Hi there, I\m new to curl (first time contributing to open source > project also). > > I am working on resolving this issue ( Github: #2161 ) > > So far I think i fixed: Total (and) % Received > >

Re: About IP resolve problem when using HTTP proxy

2018-03-09 Thread Ray Satiro
On 3/8/2018 7:47 AM, Lessandro Mariano wrote: > I see. I can't figure out a way to solve my use case without patching > curl though. > > I can use CURLOPT_SSL_CTX_FUNCTION and mbedtls_ssl_conf_verify to > manually verify the common name in the certificate returned by the > server, however I cannot

Re: Issues building curl 7.59 on windows

2018-03-23 Thread Ray Satiro
On 3/23/2018 5:34 PM, Mamta Upadhyay wrote: > I am trying to build curl 7.59 on windows with static c-ares version > 1.13. It gives me the below link errors which I am unable to resolve: > > nmake INFO version.obj : error LNK2019: unresolved external > symbol __imp__ares_version refer

Re: crash in Curl_ssl_connect_nonblocking

2018-03-23 Thread Ray Satiro
On 3/24/2018 1:34 AM, Gangadhar Hariharan wrote: > I am using 2 threads. One for adding curl handle to multi-handle and > the other to execute the multi_perform. i have a recursive mutex to > safeguard the adding/executing of the multi-handle. > In one of the executions, i see a crash in curl_multi

Re: CURLINFO_SPEED_DOWNLOAD_T not working

2018-03-31 Thread Ray Satiro
On 3/31/2018 3:42 AM, David L. wrote: > I have a couple questions about CURLINFO_SPEED_DOWNLOAD_T. >   > First, I don't understand the example in the documentation: > https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD_T.html >   > The output seems to go into curl_off_t speed but then it is not

Re: accumulated timers (was RE: https://github.com/curl/curl/issues/522)

2018-04-04 Thread Ray Satiro
On 4/3/2018 7:54 PM, Ryan Braud wrote: > On Wed, Mar 28, 2018 at 11:57 PM, Daniel Stenberg > wrote: > > Welcome to this *colloborative* project we call curl. > > This change you refer to (for the rest of the audience), being the > commit https://github.com/curl/c

Re: Application Crashes during curl_multi_perform

2018-04-10 Thread Ray Satiro
On 4/10/2018 1:05 PM, Rich Mpanga wrote: > We have been running to this problem recently lately with MacOs High > Sierra and I haven't found any good  discussions about it. We have a > Google drive like Application that syncs files to and from clients and > a server. The application is multi-thread

Re: How to check libcurl supported protocols in Windows?

2018-04-16 Thread Ray Satiro
On 4/17/2018 2:25 AM, Swamy J-S wrote: > > Is there a way to check which protocols are supported by libcurl on > Windows ? > > If so, How to check? > It depends which protocols were enabled when libcurl was built. Use curl_version_info [1] and check the protocols array of names. [1]: https://curl

Re: Unable to successfully use library in project

2018-07-18 Thread Ray Satiro
On 7/17/2018 9:27 PM, Dillon Korman wrote: > I get the following errors when I try to build the project: > > 1>project.obj : error LNK2001: unresolved external symbol > __imp_curl_easy_init > 1> project.obj : error LNK2001: unresolved external symbol > __imp_curl_easy_setopt > 1> project.obj : erro

Re: FTPS: error 425 on connection re-use - SSL session not being re-used?

2018-07-27 Thread Ray Satiro
On 7/27/2018 5:38 AM, Ivan Pilipenko wrote: > Hello, > > according to [1], the error occurs because proftpd requires the clients to > also re-use SSL sessions if the connection is re-used. Setting the > corresponding option in proftpd to work around the issue works, so it seems > curl is still n

Re: Windows users! Help us test upload performance tuning?

2018-08-03 Thread Ray Satiro
On 8/2/2018 8:52 AM, Daniel Stenberg wrote: > Please note that we would *love* your assistance here if you're a > Windows user and can offer a few moments of your time to run a few > tests on a few Windows versions and tell us the outcome! Here's a > simple way to help us make curl better without d

Re: only http2 mode?

2018-08-29 Thread Ray Satiro via curl-library
On 8/29/2018 9:38 AM, Stefan Eissing via curl-library wrote: > In Tests I'd like to make a curl command line requests that should only > succeed for HTTP/2. Is that possible? '--no-http1.1' does not seem to have an > effect. Or maybe I am holding it wrong? The --http options are not boolean so n

Re: Deprecate falling back to http:// ?

2018-09-19 Thread Ray Satiro via curl-library
On 9/19/2018 5:02 AM, Daniel Stenberg via curl-library wrote: > The URL parser in libcurl accepts URLs without a scheme, the "text://" > part of URLs. > > If no scheme is specified, libcurl guesses which scheme that was > intended based on some basic hueristics and if nothing matches it > falls bac

Re: Ending libcurl when EVT_QUERY_END_SESSION received

2018-09-27 Thread Ray Satiro via curl-library
On 9/26/2018 5:00 AM, Daniel Stenberg via curl-library wrote: > On Tue, 25 Sep 2018, acorn12 via curl-library wrote: > >> Looking through the error codes fro libcurl, I cannot find any way to >> ensure that the error code I am intending to return from the >> callbacks will not conflict with any oth

Re: libCurl 7.61.1: no response message received indicating dead connection

2018-10-12 Thread Ray Satiro via curl-library
On 10/9/2018 9:40 AM, Bernd Mueller (bermuell) via curl-library wrote: > I’m reaching out to you as we saw a functional change in libCurl which might > not have been intended or to get advice how to cope with it on application > side. > > When moving from libCurl version 7.61.0 to 7.61.1 a respon

Plans to switch Visual Studio pre-generated project files from OpenSSL 1.0.2 to 1.1.1

2018-10-16 Thread Ray Satiro via curl-library
One of the ways curl can be built in Windows is by using pre-generated Visual Studio project files in common configurations. (Refer to the projects/ directory. The files are only pre-generated for the release, if you are working from the repo you'd need to run generate.bat). The libcurl w/OpenSSL c

Re: Order of certificates in curl_certinfo

2018-10-25 Thread Ray Satiro via curl-library
On 10/25/2018 3:20 PM, Martin Galvan via curl-library wrote: > When using the CURLINFO_CERTINFO, the documentation says that a struct > curl_certinfo gets populated with the peer's certificate chain, and > the certs are accessible through the 'certinfo' member, which is an > array. I'm wondering wh

Re: CURLOPT_CERTINFO for WinSSL?

2018-10-25 Thread Ray Satiro via curl-library
On 10/25/2018 2:39 AM, Daniel Stenberg via curl-library wrote: > On Tue, 23 Oct 2018, Martin Galvan via curl-library wrote: > >> I read the documentation for CURLOPT_CERTINFO and noticed that it's >> not supported for WinSSL-based builds. Are there plans to implement >> this any time soon? > > I've

Re: schannel: next InitializeSecurityContext failed: Unknown error

2019-01-04 Thread Ray Satiro via curl-library
On 1/4/2019 12:04 PM, Salisbury, Mark via curl-library wrote: > > This error message is actually pretty helpful: > >   > > Trying https://www.hollywood-mal.de/ OK! > Trying https://www.hollywood-mal.com/ > FAIL: 35 schannel: next Init

Re: Idea: voluntary restricting curl (use)

2019-01-11 Thread Ray Satiro via curl-library
On 1/10/2019 5:25 PM, Daniel Stenberg via curl-library wrote: > I want to test an idea on you all before I proceed and do anything > else with it. I need your input, your critique and perhaps your > suggestions on how to make into an awesome idea. > > The problem > >  You - as a user - run programs

Re: Help ! curl for chrome

2019-01-13 Thread Ray Satiro via curl-library
On 1/11/2019 7:30 PM, Ding xd via curl-library wrote: > i had modified openssl   and built it into curl succussfully. >  in this openssl , add some  our special ciphersuits. >  My project ,  nginx work with my modified openssl . > i want to view this  special https website use chrome/Chromium,but i

Re: CURLOPT_TIMEOUT not working sometimes: easy handle goes silent

2019-01-28 Thread Ray Satiro via curl-library
On 1/28/2019 4:50 PM, Zhao Yisha via curl-library wrote: > Yes. It is what I have in mind. Thanks for fixing it! Could you please try the fix [1] to confirm? Thanks [1]: https://github.com/curl/curl/pull/3501 --- Unsubscribe: https

Re: Expire in 0 ms for 1 (transfer 0x7fb8da47d600)

2019-02-13 Thread Ray Satiro via curl-library
On 2/13/2019 12:44 PM, Christian Schmitz via curl-library wrote: > In multi.c, there is a line: > > infof(data, "Expire in %ld ms for %x (transfer %p)\n", (long)milli, id, data); > > > Which causes tons of log messages in our transfers. > Can this be removed? > > I bet it was for debugging an issue

  1   2   3   4   5   6   7   >