Re: Multithreaded use of libcurl

2015-09-22 Thread Aaron Meriwether
> On Sep 20, 2015, at 1:20 AM, Ray Satiro via curl-library > <curl-library@cool.haxx.se> wrote: > > On 9/18/2015 6:47 AM, doa379 wrote: >> On 18/09/15 01:22, Aaron Meriwether wrote: >>> >>>> On Sep 17, 2015, at 1:06 PM, doa379 <doa...@gmail.com&

Re: Multithreaded use of libcurl

2015-09-17 Thread Aaron Meriwether
> On Sep 17, 2015, at 1:06 PM, doa379 wrote: > > I think my issue has resolved itself by putting in a delay to some of the > operations in the threads. If you use delays to "fix" a bug in a threaded program, you are doing it wrong, and the bug will almost certainly

Re: curl_easy hanging with threads

2015-09-10 Thread Aaron Meriwether
> On Sep 9, 2015, at 2:43 PM, Aaron Meriwether <m...@ameriwether.com> wrote: > >> On Jul 1, 2015, at 4:17 AM, Aaron Meriwether <m...@ameriwether.com> wrote: >>> On Jul 1, 2015, at 4:14 AM, Daniel Stenberg <dan...@haxx.se> wrote: >>>

Re: curl_easy hanging with threads

2015-09-09 Thread Aaron Meriwether
> On Jul 1, 2015, at 4:17 AM, Aaron Meriwether <m...@ameriwether.com> wrote: >> On Jul 1, 2015, at 4:14 AM, Daniel Stenberg <dan...@haxx.se> wrote: >> >> On Tue, 30 Jun 2015, Aaron Meriwether wrote: >> >>> Process hangs (sometimes) when making sequ

Re: Chunked POST appears to be empty

2015-08-30 Thread Aaron Meriwether
RequestBin seems to be unable to deal properly with chunked posts. I tried your example against my own server (Apache+mod_cgi+Perl), and it works: https://gist.github.com/p120ph37/9490dc9a8a1b5a38b9a2 https://gist.github.com/p120ph37/9490dc9a8a1b5a38b9a2 -Aaron On Aug 30, 2015, at 3:40 AM,

Re: Using ftpupload.c returns a directory listing in HTML format

2015-08-13 Thread Aaron Meriwether
On Aug 13, 2015, at 7:36 AM, Nils Söderman n...@meditalk.com wrote: Thanks! As I use my archive w/o username/password (within my routerprotected firewall) with my Win7-OS I did not expect any problem with password protection. The share backup password entry is empty. BUT connecting from

Re: Welcome to the curl-library mailing list

2015-08-13 Thread Aaron Meriwether
On Aug 13, 2015, at 10:20 AM, Elia Pinto gitter.spi...@gmail.com wrote: For the C standard is not possible to use #if or #ifdef with an enum like CURL_SSLVERSION_SSLv2. The code compile but it is borken (the compiler skip the #ifdef with the CURL_SSLVERSION_xxx) Sorry, you're right, the #if

Re: Welcome to the curl-library mailing list

2015-08-13 Thread Aaron Meriwether
On Aug 13, 2015, at 8:37 AM, Elia Pinto gitter.spi...@gmail.com wrote: I'm making a program that would declare an array of structures like this, to associate a name to a curl constant curl used for the particular SSL version. But these symbols are constants enum and you can not do it.

Re: Send Remote Source in JSON body

2015-07-28 Thread Aaron Meriwether
On Jul 28, 2015, at 2:55 PM, Robert Hudspeth hudsp...@bigml.com wrote: Do you still know if I can modify the JSON body using libcURL? libcurl does not provide methods for manipulating JSON. You will need to compose your JSON document via some other mechanism, then pass the finished

Re: Send Remote Source in JSON body

2015-07-28 Thread Aaron Meriwether
On Jul 28, 2015, at 12:45 PM, Robert Hudspeth hudsp...@bigml.com wrote: I have a remote .csv file that I need to POST to our REST API in a JSON body, yet the code I have doesn't quite work. I believe what's happening is that the JSON body isn't in the right format that the API accepts, so

Re: TLS1.2 from TLS1.0

2015-07-27 Thread Aaron Meriwether
On Jul 27, 2015, at 2:52 PM, Praveen Pvs meetpraveen...@gmail.com wrote: should we use specific version of TLS library? Yes, you will indeed need a recent enough version to support TLSv1.2. If you are using a *nix system, you are probably using OpenSSL or LibreSSL as your TLS library. If this

Re: CURL custom POST commands

2015-07-20 Thread Aaron Meriwether
On Jul 20, 2015, at 9:57 AM, Patrick Monnerat patrick.monne...@datasphere.ch wrote: Fitzgerald, Kevin wrote: Thanks for this, but it looks like a command line request. What I need to do is send my POST within a C program in a UNIX environment. If you add --libcurl skeleton.c to a curl

Re: CURL custom POST commands

2015-07-14 Thread Aaron Meriwether
On Jul 14, 2015, at 12:10 PM, Fitzgerald, Kevin kevin.fitzger...@hp.com wrote: I have to connect to a web service that requires a username and password and as a result I cannot use the basic CURL POST logic. Does anyone have a program or example of how to use CURL to set up a custom

Re: curl_easy hanging with threads

2015-07-01 Thread Aaron Meriwether
Stenberg dan...@haxx.se wrote: On Tue, 30 Jun 2015, Aaron Meriwether wrote: Process hangs (sometimes) when making sequential requests from multiple threads. Any idea what's going wrong? Using those exact URLs (and protocols) from the example? At what point does it hang and for how long

curl_easy hanging with threads

2015-06-30 Thread Aaron Meriwether
Process hangs (sometimes) when making sequential requests from multiple threads. Any idea what's going wrong? Simplest test case is to use the multithread.c example (http://curl.haxx.se/libcurl/c/multithread.html http://curl.haxx.se/libcurl/c/multithread.html) with this alternate thread body: