hakz / multirequest Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/multirequest
License: GNU Lesser General Public License v3.0
Automatically exported from code.google.com/p/multirequest
License: GNU Lesser General Public License v3.0
MultiRequest - PHP library that provides multithread GET/POST requests based on CURL Project site: http://code.google.com/p/multirequest https://github.com/barbushin/multirequest SVN: http://multirequest.googlecode.com/svn/trunk GIT: https://github.com/barbushin/iploc.git Recommended: * Google Chrome extension PHP Console - http://goo.gl/b10YF * Google Chrome extension JavaScript Errors Notifier - http://goo.gl/kNix9
In 251 line of this file:
public function getRespopnseCookies(&$deleted = null) {
but may be:
public function getResponseCookies(&$deleted = null) {
.
Original issue reported on code.google.com by [email protected]
on 20 Dec 2011 at 3:10
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by barbushin
on 28 May 2010 at 10:37
It will be nice, if I can passing any user-data to request and then get it form
callback.
Example:
function onComplete(MultiRequest_Request $request,
MultiRequest_Handler$handler) {
$request->getUserData(); // return array('foo'=>'bar',1=>2);
}
$mrHandler = new MultiRequest_Handler();
$mrHandler->onRequestComplete('onComplete');
$request = new MultiRequest_Request($url);
$request->setUserData(array(array('foo'=>'bar',1=>2))); // adding user data
$mrHandler->pushRequestToQueue($request);
}
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 11:21
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by barbushin
on 28 May 2010 at 10:37
I'm looking for possibility adding requests to queque on the fly.
Example:
function onComplete(MultiRequest_Request $request, MultiRequest_Handler
$handler) {
if($request->getCode()!=200) $handler->pushRequestToQueue($request);
}
Result:
Warning: curl_multi_add_handle(): 22 is not a valid cURL handle resource in C:\x
ampplite\php\library\MultiRequest\Handler.php on line 99
Can you fix it?
Original issue reported on code.google.com by [email protected]
on 13 Feb 2011 at 11:11
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by barbushin
on 28 May 2010 at 10:38
Now it works only by custom CURL options
Original issue reported on code.google.com by barbushin
on 28 May 2010 at 10:39
What steps will reproduce the problem?
Request a page which has been permanently redirected:
$mh = new \MultiRequest_Handler();
$request = new \MultiRequest_Request('http://feeds.nytimes.com/click.phdo?i=8c404e05a70d2091e222528053b99410');
$mh->pushRequestToQueue($request);
$request->onSuccess(function() { echo('Success!'); });
$mh->start();
What is the expected output? What do you see instead?
Expected: the success callback is reached
Actual: errors out trying to call reinitCurlHandle(), which does not exist as
of r24
Original issue reported on code.google.com by [email protected]
on 16 Aug 2011 at 7:01
curl's CURLOPT_POSTFIELDS can be a string or an array of name/value pairs.
MultiRequest seems to assume that it's only the latter. If you have a server
and client with different character encodings, this code will be called:
if($clientEncoding != $this->serverEncoding) {
array_walk_recursive($postData, create_function('&$value', '$value = mb_convert_encoding($value, "' . $clientEncoding . '", "' . $this->serverEncoding . '");'));
}
It shouldn't call array_walk_recursive if it's not an array.
Original issue reported on code.google.com by [email protected]
on 17 Jul 2013 at 7:55
How to implement POST requests after the GET requests with multirequest library?
I want to login to a set of urls and before posting firstly I need to parse the page using get requests (which is not a problem following the index.php example) to grab some info like form values and so on. The issue for me here is raising when I want to make POST requests with grabbed values. Basically I don't know how to implement POST requests after GET requests.
Could you give me an idea on how to do it? How to make that POST call after GET in the same script for some urls in the array. Thank you.
Original issue reported on code.google.com by [email protected]
on 12 May 2012 at 10:38
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.