is refer to multiple synchronous curl transfers
Questions tagged [curl-multi]
197 questions
1
vote
1 answer
I want my php curl script to handle more than 50 multiple requests at once without hanging or put load on server
I want the following curl code stable for up to 50 connections from different ip's, So it can easily handle up to 50 connections requests at once without hanging or putting much load on server.
Actually i am on shared hosting. but i want this curl…

smallbee
- 233
- 1
- 4
- 16
1
vote
0 answers
Mulitple Curl Requests with login from multiple URLS PHP
Having a small issue with this, I have 12 identical curl requests to match an order number typed to get a response. Singularly this works perfectly.
When I try and bring them together - If the 1st URL doesn't have a match move to the second curl…

Jay the Geek
- 83
- 1
- 11
1
vote
1 answer
Multiple HTTP request - Rails
My application checks a number of domains to see if they are valid (approx 100). I have the following code to check a single domain:
def self.test_url uri, limit = 10
if limit == 0
return get_error_messages("001")
end
begin
…

bradley
- 776
- 2
- 11
- 29
1
vote
1 answer
eBay GetSellerTransactions & cURL_multi - limit?
Another beginners question:
I can get all eBay transactions from an item ID with GetSellerTransactions (XML).
I guess I can run cURL_multi and can get several transactions parallel. My question is, is there a limit how many item# I can send to the…

yello
- 191
- 1
- 13
1
vote
1 answer
Combining curl multi and strpos() to find text on webpage
EDITED
I am attempting to use curl multi to check the response from a website and additionally check each curl response for a portion of text. I have grouped the data into an array but I cannot figure out if I am using the correct/most efficient…

user1098178
- 697
- 3
- 9
- 25
1
vote
1 answer
curl_multi_select consistently fails for unknown reason
I created a php script to run some google queries in order to get acquainted with the concept of multiple parallel requests in curl. As a basis, I used example #1 on this page: http://php.net/manual/en/function.curl-multi-exec.php
I found that…

Herbert
- 5,279
- 5
- 44
- 69
1
vote
4 answers
Are there any alternatives to shell_exec and proc_open in PHP?
It seems like I can't use shell_exec or proc_open on my shared server.
The message I get when I try to use it is:
Warning: shell_exec() has been disabled for security reasons in /home/georgee/public_html/admin/email.php on line 4
Are there any…

Nathan Osman
- 71,149
- 71
- 256
- 361
1
vote
1 answer
curl_multi pause after a few executions
My problem is I want to access json data from an API webpage, and there are only 10 calls per second allowed. After 10 calls added to the handler I exec them and then every result gets decoded, the data processed and the curl session will be removed…

pfu
- 69
- 1
- 7
1
vote
0 answers
PHP curl_multi - simple GET calls return "No Input File Specifed" on ~10% of urls
I have an internal script get_url.php which performs a cURL call to a specified url, depending on the specified GET params.
I am running an additional script get_multi_urls.php which uses curl_multi to call get_url.php for 25 different urls.
After…

spencer
- 21
- 3
1
vote
1 answer
JSESSIONID PHP Curl Request
I am trying to send a multi curl request to an api in order to retrieve data. This specific api requires a proper JSESSIONID cookie to be passed into the headers for it to work correctly.
The function I am using to send the request is:
function…

Karthik
- 11
- 1
- 2
1
vote
1 answer
PHP Http Pooling Vs Curl Multi
I want to make a parallel requests from server A to server B using PHP. Which is the best way among Curl Multi Handle and Http Pooling.
What are the pros and cons of these two.
Please suggest me an optimized way which is best in performance, memory…

Venkatesh Kalikiri
- 311
- 3
- 7
1
vote
4 answers
Asynchronous/parallel HTTP requests using PHP curl_multi
I recently looked into the possibility of making multiple requests with curl. I may not be understanding it fully, so I am just hoping to clarify some concepts.
It's definitely a good option if you are fetching content from multiple sources. That…

burger
- 5,683
- 9
- 40
- 63
1
vote
1 answer
cURL refuses to display 302 redirect URL
Here's my code:
$urls = array('http://www.avantlink.com/click.php?p=62629&pw=18967&pt=3&pri=152223&tt=df');
$curl_multi = curl_multi_init();
$handles = array();
$options = $curl_options + array(
CURLOPT_HEADER =>…

user2188915
- 37
- 1
- 5
1
vote
0 answers
PHP Curl_Multi not working when CURLOPT_FOLLOWLOCATION is on
I have problem with Curl_Multi and redirects. Code below works well till I set CURLOPT_FOLLOWLOCATION to 1. Setting CURLOPT_FOLLOWLOCATION on, results in an infinite loop.
/**
* Curl options
*
* @var array
*/
private $_curlOptions =…

Albert Kozłowski
- 476
- 2
- 8
1
vote
0 answers
CURL_MULTI active maximum tracking
sry for my not the best english:) So i work with curl_multi.
do {
$mrc = curl_multi_exec($this->curl, $active);
}
while ($mrc == CURLM_CALL_MULTI_PERFORM);
while ($active && $mrc == CURLM_OK) {
if (curl_multi_select($this->curl) != -1) {
…

Piotr Małłek
- 61
- 1
- 6