curl-multi Questions

6

Solved

I have been following this tutorial on how to use curl_multi. http://arguments.callee.info/2010/02/21/multiple-curl-requests-with-php/ I can't tell what I am doing wrong, but curl_multi_getcontent...
Brightness asked 13/9, 2013 at 23:26

2

Relevant information: issue 3602 on GitHub I'm working on a project that gathers and tests public/free proxies, and noticed that when I use the curl_multi interface for testing these proxies, somet...
Ellsworth asked 22/2, 2019 at 12:40

1

Solved

I'm getting "Could not resolve host" when I call curl_error($ch) in curl_multi context, the errno is 0 though, and the request is done successfully also(I'm getting the expected response ...
Crawl asked 19/2, 2019 at 17:32

6

Solved

I'm working on an app that gets all the URLs from an array of sites and displays it in array form or JSON. I can do it using for loop, the problem is the execution time when I tried 10 URLs it giv...
Emphatic asked 2/1, 2019 at 8:49

5

Solved

I am trying to access and download some .torrent files from https://torrage.com using php curl. But nothing happens , curl_error($ch) gives $ch = curl_init ('https://torrage.com/torrent/640FE84C61...
Shinbone asked 29/6, 2015 at 4:33

4

Solved

I'm working on a project where I pull data (JSON) from an API. The problem I'm having is that the memory is slowly growing until I get the dreaded fatal error: Fatal error: Allowed memory size o...
Minica asked 27/10, 2015 at 10:21

4

Solved

I'm currently using Curl for PHP a lot. It takes a lot of time to get results of about 100 pages each time. For every request i'm using code like this $ch = curl_init(); // get source curl_close...
Erne asked 10/10, 2010 at 11:44

3

Solved

I'm using curl_multi functions to request multiple URLs and process them as they complete. As one connection completes all I really have is the cURL handle (and associated data) from curl_multi_inf...
Bauble asked 11/2, 2010 at 15:53

4

Solved

I've been banging my head against the wall for hours trying to understand why cURL's cookie jar file was empty when I tried reading it. I just discovered that my code works if I call curl_close() t...
Tommyetommyrot asked 31/3, 2014 at 0:3

2

Solved

$data_struct = array(); $data_struct[]['opts'] = array( CURLOPT_URL => 'http://www.yahoo.com/', CURLOPT_RETURNTRANSFER => true); $data_struct[]['opts'] = array( CURLOPT_URL => 'http://ww...
Chader asked 24/2, 2012 at 6:17

4

Solved

If I run a standard cURL_multi_exec function (example below), I get all cURL handles requested at once. I would like to put a delay of 100ms between each request, is there a way to do that? (nothin...
Escalera asked 8/8, 2011 at 19:21

2

Solved

i want to capture curl errors and warnings in my error handler so that they do not get echoed to the user. to prove that all errors have been caught i prepend the $err_start string to the error. cu...
Teratogenic asked 14/4, 2013 at 22:57

1

Solved

I'm trying to understand curl_multi_exec. I've copied a piece of the manual example here. So I'm wondering, how does it work? The first loop sends the http request I guess? But it then it is follow...
Vulpecula asked 21/3, 2013 at 22:8

2

Solved

I am trying to batch/bulk upload from localhost (xampp) to my S3 bucket. It seems to work for about 6 items then i get an error message: The cURL error says Failed sending network data. from http:/...
Tella asked 3/9, 2012 at 20:43

1

Solved

I wrote a class to make it easier to use multi cURL requests I want to log errors when I get a 404 error or any other error. I already have CURLOPT_FAILONERROR set to true. I'm currently using cur...
Finstad asked 29/9, 2012 at 14:51

2

Solved

When I run the below code it seems to me curl_multi_select and curl_multi_info_read are contradicting each other. As I understand it curl_multi_select is supposed to be blocking until curl_multi_ex...
Downcomer asked 13/4, 2012 at 22:13

6

Solved

Currently I'm using file_get_contents() to submit GET data to an array of sites, but upon execution of the page I get this error: Fatal error: Maximum execution time of 30 seconds exceeded All I ...
Humeral asked 18/4, 2010 at 16:17

2

Solved

Currently, my cURL multi exec stops if one url it connects to doesn't work, so a few questions: 1: Why does it stop? That doesn't make sense to me. 2: How can I make it continue? EDIT: Here is m...
Pongee asked 27/4, 2010 at 21:24

1

Solved

Here is my current code: $SQL = mysql_query("SELECT url FROM urls") or die(mysql_error()); //Query the urls table while($resultSet = mysql_fetch_array($SQL)){ //Put all the urls into one variable...
Thulium asked 22/4, 2010 at 16:36

1

Solved

I'm having a problem with curl_multi_*, I want to create a class / function that receives, lets say 1000 URLs, and processes all those URLs 5 at a time, so when a URL finishes downloading it will a...
Ephemerality asked 7/9, 2009 at 1:39

2

Solved

If i want to do multiple things (that require cookies) with curl, for example: login to (my own) blog then automatically submit a blog post do I do this in one curl instance before curl close o...
Waterway asked 14/8, 2009 at 0:58

2

Solved

Is there any sane way to make a HTTP request asynchronously in PHP without throwing out the response? I.e., something similar to AJAX - the PHP script initiates the request, does it's own thing and...
Blunder asked 6/8, 2009 at 17:18
1

© 2022 - 2024 — McMap. All rights reserved.