Aw: Re: the connection ID Number increase always..

2013-04-15 Thread dfgfgdf sdfsdf
Hi,   thanks for your so rapid reply! Yes, that should be my question:   How can i reuse my connection in my loop?   My code is:   struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Content-type:text/xml"); headers = curl_slist_append(headers, "Expect:"); sprin

Re: Adding PROPFIND support

2013-04-15 Thread Daniel Stenberg
On Sun, 14 Apr 2013, David Strauss wrote: I understand the concern with adding a library dependency, but it could be a default-off compile-time option. My objection isn't only the added dependency. The fact that it doesn't have a URL syntax/spec and the fact that it is a protocol on top of HT

Re: Aw: Re: the connection ID Number increase always..

2013-04-15 Thread Daniel Stenberg
On Mon, 15 Apr 2013, dfgfgdf sdfsdf wrote: How can i reuse my connection in my loop? By _not_ setting CURLOPT_FORBID_REUSE and making sure you re-use the same easy handle without repeatingly doing init/cleanup. -- / daniel.haxx.se --

[PATCH] New tests 1900 and 2033 sometimes need librt

2013-04-15 Thread Paul Howarth
I had some instances of the test programs lib1900 and lib2033 failing to build due to not being able to find clock_gettime at link time (missing -lrt). Attached patch works for me. Paul. >From a78c2e6e71a14dc50f9a76a1b57f05fc3008c446 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 15 Ap

How to get error connection even if timeout is disabled

2013-04-15 Thread Eric Beuque
Hi, I'm using curl to get a video stream. This video stream can send frame very slowly (for example one frame every 10 minutes). So i disabled the timeout because i don't want to receive an error if i don't receive any frame. Nevertheless, this lead to not receive any error is the connection is lo

libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Simon Fischer
Hi everyone,   I'm developing a cross-plattform app for Android, iOS and Blackberry. I'll use libcurl only for HTTP/HTTPs GETs. Right now I'm in the process of compiling libcurl for the different plattforms and reading the libcurl documentation. As I would like to keep the file size of libcurl an

Re: libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Cédric Deltheil
Le 15 avr. 2013 à 14:26, Simon Fischer a écrit : > Does somebody know if Android, iOS and Blackberry are some of these > plattforms where libcurl will not function properly multi-threaded without > this option set? From my own experience on iOS and Android platforms only, if you build libcurl

unit tests for curl tool code

2013-04-15 Thread Kamil Dudka
Hi, while trying to merge the patch for , I wanted to use the checker provided by Jared Jennings as a unit test. However, our unit testing infrastructure seems to cover only the library code for now. Is there any plan to extend the infrastructure for the

Aw: Re: libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Simon Fischer
Thank you Cédric, I understand it better now. I have one more question, sorry if this is a stupid one. :) As I understand it now if I build with the threaded resolver I will than use the multihandel and libcurl will manage the threads? And if I choose c-ares I manage the threads? Is this right?

Re: Aw: Re: libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Cédric Deltheil
Le 15 avr. 2013 à 15:03, Simon Fischer a écrit : > I have one more question, sorry if this is a stupid one. :) As I understand > it now if I build with the threaded resolver I will than use the multihandel > and libcurl will manage the threads? And if I choose c-ares I manage the > threads? Is

Re: How to get error connection even if timeout is disabled

2013-04-15 Thread Lijo Antony
On 04/15/2013 02:21 PM, Eric Beuque wrote: Hi, I'm using curl to get a video stream. This video stream can send frame very slowly (for example one frame every 10 minutes). So i disabled the timeout because i don't want to receive an error if i don't receive any frame. Nevertheless, this lead to

Aw: Re: Re: libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Simon Fischer
Thanks again Cédric, I understand now. As you said you have experience with iOS and Android, what's the better choice in your opinion the threaded resolver or c-ares?   Regards, Simon   Gesendet: Montag, 15. April 2013 um 15:23 Uhr Von: "Cédric Deltheil" An: "libcurl development" Betreff: R

Re: Aw: Re: Re: libcurl for Android, iOS, Blackberry - c-ares and CURLOPT_NOSIGNAL option

2013-04-15 Thread Cédric Deltheil
Le 15 avr. 2013 à 16:52, Simon Fischer a écrit : > As you said you have experience with iOS and Android, what's the better > choice in your opinion the threaded resolver or c-ares? I would say you could pick one or another. Maybe you should refer to this post[1] by Daniel for more details. In

Re: Adding PROPFIND support

2013-04-15 Thread Nick Zitzmann
On Apr 15, 2013, at 2:19 AM, Daniel Stenberg wrote: > Why would we add support for webdav in libcurl? As far as I can see it, it is > already perfectly possible to implement webdav by using libcurl. If it isn't, > is there something we can do to improve that ability without actually doing > t

Re: Adding PROPFIND support

2013-04-15 Thread David Strauss
On Mon, Apr 15, 2013 at 1:19 AM, Daniel Stenberg wrote: > Why would we add support for webdav in libcurl? As far as I can see it, it > is already perfectly possible to implement webdav by using libcurl. Absolutely true. We're doing it right now. > If it isn't, is there something we can do to imp

Re: [PATCH] New tests 1900 and 2033 sometimes need librt

2013-04-15 Thread Daniel Stenberg
On Mon, 15 Apr 2013, Paul Howarth wrote: I had some instances of the test programs lib1900 and lib2033 failing to build due to not being able to find clock_gettime at link time (missing -lrt). Attached patch works for me. Thanks, pushed! -- / daniel.haxx.se

Re: [RELEASE] curl and libcurl 7.30.0

2013-04-15 Thread Guenter
Hi consumers of binary builds, On 12.04.2013 10:52, Daniel Stenberg wrote: I'm happy to present curl and libcurl version 7.30.0, readily available for download from http://curl.haxx.se/ as usual. in the past I was a couple of times asked about if I can provide other build combos than those liste

Test 1900 isn't working due to a Linux-specific call

2013-04-15 Thread Nick Zitzmann
For a while now, I've been seeing this appear when running test 1900: === 'module' object has no attribute 'epoll' RUN: Unknown server on our http3 port: 9014 (52) RUN: HTTP3 server failed verification === I checked the documentation at

[PATCH] docs/libcurl: fix formatting in manpage

2013-04-15 Thread Dave Reisner
Commit c3ea3eb6 introduced some minor cosmetic errors in curl_mutli_socket_action(3). --- docs/libcurl/curl_multi_socket_action.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/libcurl/curl_multi_socket_action.3 b/docs/libcurl/curl_multi_socket_action.3 index 59a9d94

Reading URL source

2013-04-15 Thread Richard Cattermoul
Greetings I used to be a C programmer until I retired a couple of years ago, but I still like to write programs for my own amusement on my windows 7 64bit PC. I have installed a C compiler. I would like to read URL source inside a C program. Today I discovered that you can open http files

Re: Adding PROPFIND support

2013-04-15 Thread Daniel Stenberg
On Mon, 15 Apr 2013, David Strauss wrote: Whether that's important depends on how much cURL is (1) a library that happens to support multiple URL-based protocols versus (2) a library that abstracts the differences between protocols when possible. Nothing is a simple black or white of course..

Re: DNS-based cluster awareness for connection pools and pipelines

2013-04-15 Thread Daniel Stenberg
On Fri, 12 Apr 2013, David Strauss wrote: Meanwhile, cURL has built-in DNS lookup, connection pool management, and connection re-establishment when reusing a persistent connection fails. Our ideal would be extending the DNS record awareness into the retry and pool logic to go from (1) today's

Re: Reading URL source

2013-04-15 Thread Michael Wood
On 15 April 2013 18:38, Richard Cattermoul wrote: [...] > But then I came across libcurl and your c function simple.c which includes > but I haven’t so far discovered the web page that I can > download the library from. > > Can you help me please? The cURL website is here: http://curl.haxx.se/

Re: Reading URL source

2013-04-15 Thread Lijo Antony
On 04/15/2013 08:38 PM, Richard Cattermoul wrote: But then I came across libcurl and your c function simple.c which includes but I haven’t so far discovered the web page that I can download the library from. http://curl.haxx.se/download.html -lijo ---

Re: Reading URL source

2013-04-15 Thread alpforce
Happy to help : http://curl.haxx.se/download.html choose the development windows version , there you will have curl.exe and the library. You will be able to build both as static lib and/or use it in DLL version :) Richard Cattermoul wrote: > > Greetings > > I used to be a C programmer until I reti