Git Product home page Git Product logo

multirequest's Introduction

multirequest's People

Contributors

barbushin avatar

Watchers

James Cloos avatar

multirequest's Issues

Mistake in Request.php

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

Connections timeouts

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

Adding user-data to request

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

Errors exceptions with callbacks

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

Pushing requests to queque on the fly from callback.

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

Add acitve queue class

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

Add POST/COOKIE support

Now it works only by custom CURL options

Original issue reported on code.google.com by barbushin on 28 May 2010 at 10:39

Nonexistent reinitCurlHandle() called when trying to follow redirects

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

Error if postData is string and client/server encodings are different

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

Joining GET and POST with multirequest library

 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.