cURL / Mailing Lists / curl-library / Single Mail


Re: multiple curls inside for loop in C

From: Fabian Frank <>
Date: Mon, 19 May 2014 15:05:01 -0700

On May 19, 2014, at 2:46 PM, Madhurima Das <> wrote:

> I am a beginner in both C programming and libcurl and writing a program to fetch 1000 data values from a website. The website provides a job number and is redirected into another page for the results. Since, the code I have written is almost 500 lines, I am giving a general flow of the program and a short code which I think is the problematic area:

You should use the multi interface, it will automatically open a limited number of concurrent connections, correctly reuse them, etc. If you make a 1000 requests at once, Iím not surprised that your network, the server you are talking to or something else is overwhelmed and causes request failures.

List admin:
Received on 2014-05-20