Re: Randomly no response from IIS, but *only* with cURL

2012-02-08 Thread Daniel Stenberg
On Tue, 7 Feb 2012, Felix E. Klee wrote: There people are in charge of the servers, and at least one solved the problem by increasing the connection timeout server-side. That's not necessarily solving the problem, that is working around the sympthom unless you back it up with detailed

Re: Issue with content-type for no content body..

2012-02-08 Thread sukanya c
The issue is resolved, by setting CURLOPT_POSTFIELDS CURLOPT_POSTFIELDSIZE to NULL 0 respectively. On Tue, Jan 17, 2012 at 3:37 PM, Dan Fandrich d...@coneharvesters.comwrote: On Tue, Jan 17, 2012 at 03:19:35PM +0530, sukanya c wrote: Thanks Dan for your timley reply. It worked as per your

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Daniel Stenberg
On Tue, 7 Feb 2012, Yang Tse wrote: Perhaps naming it CURLOPT_SSL_OPTIONS with the bitmask style argument you mention would be the most flexible. Such a take would look like the attached patch. It accepts a bitmask with only one defined bit so far named CURLSSLOPT_ENABLE_BEAST. Thoughts?

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Alessandro Ghedini
On Wed, Feb 08, 2012 at 11:37:25AM +0100, Daniel Stenberg wrote: On Tue, 7 Feb 2012, Yang Tse wrote: Perhaps naming it CURLOPT_SSL_OPTIONS with the bitmask style argument you mention would be the most flexible. Such a take would look like the attached patch. It accepts a bitmask with only

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Daniel Stenberg
On Wed, 8 Feb 2012, Alessandro Ghedini wrote: Would the command line option (--ssl-no-empty-fragments) remain the same? If we go this option naming route then I don't think so. Perhaps --ssl-enable-beast would be the name then. Btw, https://www.eboekhuis.nl/ can be used to test the patch,

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Alessandro Ghedini
On Wed, Feb 08, 2012 at 01:15:19PM +0100, Daniel Stenberg wrote: On Wed, 8 Feb 2012, Alessandro Ghedini wrote: Would the command line option (--ssl-no-empty-fragments) remain the same? If we go this option naming route then I don't think so. Perhaps --ssl-enable-beast would be the name

Re: Randomly no response from IIS, but *only* with cURL

2012-02-08 Thread Felix E. Klee
On Wed, Feb 8, 2012 at 9:17 AM, Daniel Stenberg dan...@haxx.se wrote: I would propopse wireshark and that you monitor the TCP connection curl sends its request on. See what happens to it once curl has sent the request and while curl is waiting for the response. Am running wireshark now and

Memory consumption during large uploads..

2012-02-08 Thread sukanya c
I work for activesync application that use libcurl for client HTTP operations. I noticed that during 10MB data upload, the peak memory consumption reaches more than 10MB. Is it possible to send data to network in the form of chunks and discard the chunks that are already posted to network. This

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Kamil Dudka
On Wednesday 08 February 2012 11:37:25 Daniel Stenberg wrote: On Tue, 7 Feb 2012, Yang Tse wrote: Perhaps naming it CURLOPT_SSL_OPTIONS with the bitmask style argument you mention would be the most flexible. Such a take would look like the attached patch. It accepts a bitmask with only

Re: Memory consumption during large uploads..

2012-02-08 Thread Dan Fandrich
On Wed, Feb 08, 2012 at 06:32:46PM +0530, sukanya c wrote: I work for activesync application that use libcurl for client HTTP operations.   I noticed that during 10MB data upload, the peak memory consumption reaches more than 10MB. Have you tracked the source of this memory usage? Are you

How to identify graceful disconnection by remote peer while using multi-interface

2012-02-08 Thread ajil koshy
Hi, I have written an HTTPS client application using libcurl v7.23.1 (powered by openssl for SSL support) on windows. I am using multi-interface to connect to a remote HTTPS server and exchange data. Only a single easy handle is added to the multi-stack. As illustrated in the code example for

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Yang Tse
2012/2/8 Alessandro Ghedini wrote: Just nitpicking, but what about naming: CURLSSLOPT_ALLOW_BEAST --ssl-allow-beast +1 'enable' could be interpreted as if lib/curl itself initiated the BEAST atack. -- -=[Yang]=- --- List

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Daniel Stenberg
On Wed, 8 Feb 2012, Yang Tse wrote: CURLSSLOPT_ALLOW_BEAST --ssl-allow-beast +1 'enable' could be interpreted as if lib/curl itself initiated the BEAST atack. Yes, I agree that allow sounds better than enable. I'll rename the option and if no other objections pop up proceed and push it.

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Rich Gray
Daniel Stenberg wrote: On Wed, 8 Feb 2012, Yang Tse wrote: CURLSSLOPT_ALLOW_BEAST --ssl-allow-beast +1 'enable' could be interpreted as if lib/curl itself initiated the BEAST atack. Yes, I agree that allow sounds better than enable. I'll rename the option and if no other objections pop up

Protocol https not supported or disabled in libcurl for .aspx site

2012-02-08 Thread Respaldo de Pedidos
Hi, i have this error message traing to make a login on a .aspx site. Here is my code: #include stdio.h #include stdlib.h #include string.h #include curl/curl.h #include curl/easy.h int main() { curl_global_init( CURL_GLOBAL_ALL ); CURL * myHandle = curl_easy_init ( );

POP3 returns line data and CRLF separately, drops final CRLF

2012-02-08 Thread Rich Gray
As noted in a previous e-mail (Jan 31, State of POP3 in curl?), I'm working on a prototype POP3 download program utilizing libcurl. I've got my part of that prototype pretty much completed, but have noticed a couple of anomalies: 1. Libcurl is returning message data line-by-line, with two

setting LD_LIBRARY_PATH when cross-compiling

2012-02-08 Thread Daniel Stenberg
Hi friends, I found this patch of curl's configure.ac in the Yocto project: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-support/curl/c url/noldlibpath.patch While being quite hard-coded, it does have a point in that we should not touch LD_LIBRARY_PATH when

Re: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS commit

2012-02-08 Thread Oscar Koeroo
On 8/2/12 4:43 PM, Rich Gray wrote: Or to make it uber clear: CURLSSLOPT_ALLOW_VULNERABILITY_BEAST --ssl-allow-vulnerability-beast (If they want to do it, make 'em type!) - Rich +1 on the typing for this particular reason. ;-) Also people might interpret it as to 'unleash the BEAST!'

Re: Protocol https not supported or disabled in libcurl for .aspx site

2012-02-08 Thread Daniel Stenberg
On Wed, 8 Feb 2012, Respaldo de Pedidos wrote: #Protocol https not supported or disabled in libcurl This means the libcurl you use wasn't built to support HTTPS. root@ubuntu10.4:/curl-7.24.0/examples# curl-config --protocols HTTPS Probably you have two installations and your app and

Re: POP3 returns line data and CRLF separately, drops final CRLF

2012-02-08 Thread Daniel Stenberg
On Wed, 8 Feb 2012, Rich Gray wrote: 1. Libcurl is returning message data line-by-line, with two callbacks per line - one for the line data and the other for the CRLF. This seems like strange behavior. I'd coded as if I were getting the data off a TCP connection - might get one byte, might

Question about using curl_easy_setopt CURL_INFILESIZE_LARGE

2012-02-08 Thread Rohan Desai
Hello, I am using libcurl to send an HTTP PUT. To set the Content-Length on upload I use a call to: curl_easy_setopt(*curl handle*, CURLOPT_INFILESIZE_LARGE, *file size*) For most requests, i provide a curl_off_t for *file size*. However for 0-byte (empty) files i use: curl_easy_setopt(*curl