httpful
httpful copied to clipboard
A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.
Greetings I have included the phar library but it does not include the sendsXml , expectsXml functions, although those are clearly stated in GET, PARSE, POST XML at the examples...
Following code (taken from example) ``` php $response = \Httpful\Request::get($uri) ->expectsJson() ->sendIt(); ``` will invoke an error with "method undefined" in ide such phpstorm with result of not being able...
Hi, It looks like if there are multiple response headers with the same name, only the last one's value will be stored. According to the HTTP spec, all values should...
The parsing of a HTTP response headers diverges between `Response::_parseHeaders` and `Response\Headers::fromString`. `fromString` just parses the header lines and overwrites multiple header line with the same header names, whereas `_parseHeaders`...
I like this library, but i have a trouble with post data I want: $_POST = [ 'foo' => [ 'bar' => 'tar', ], ]; $_FILES = [ 'file1' =>...
Hi, Thanks for the great project - highly appreciated. I need to be able to issue non-blocking REST API calls. Something similar to https://programmerjournal.wordpress.com/2014/01/30/multi-curl-rewrite-project/. It would be great if you...
I don't see a built in testing helper for this library, something like what Guzzle has (http://guzzle.readthedocs.org/en/latest/testing.html) would be nice.
the command ``` posix_kill((int) $pid, SIGKILL); ``` requires the PCNTL module in PHP otherwise the SIGKILL constant returns the string 'SIGKILL' rather than the correct integer -9 or whatever it...
It looks like at least one person is struggling with the JSON parser option (http://stackoverflow.com/questions/20079631/how-to-get-an-array-instead-of-object-when-requesting-json-data-using-httpful). Though they could have looked into the source a little better, its apparent that the...
Resolves the warning: PHP Warning: mb_strlen() expects parameter 1 to be string, array given in httpful/src/Httpful/Request.php on line 953