httpful
httpful copied to clipboard
A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.
Code used to send a post: ``` // ... $request = json_encode($sale); try { $response = \Httpful\Request::post($uri) ->sendsJson() ->addHeaders($this->headers) ->body($request) ->send(); } catch (Exception $e) { // ... } ```...
Hi, I have one class where I use httpful as an HTTP client to get XML data. Because of different credentials I need to have two sessions so I load...
This replaces #231 because that became a bit of a tangled mess. This is cleaner and changes just one file, and doesn't fail CI.
Greetings. I'm trying to use this great tool for getting JSON from http source, but the reponse "Content-Type: text/json; charset=utf-8" and Httpful just crashes by "Unable to parse response as...
I got a file upload API in java which need a MuitipartFile request param I use Httpful send a file like $url = "upload url"; $params = ['file'=>'@'.$_FILE['image']['tmp_name']]; $response =...
I have a HTTP_CLIENT class which is pretty thing - allows me to accept parameters and call the HTTPful library while doing some logging before and after the call, it's...
```php // Decide how to parse the body of the response in the following order // 1. If provided, use the mime type specifically set as part of the `Request`...
I have difficulties to get the xyz and timestamp element. What am i doing wrong? `echo $response->body->content-xzy->xyz;` does not work. i would realy appreciate some help how to get these...
Hi , when i recive responde of rest service , how I can validate http responde code of this recipe?
Hi, I don't know if there is a way of fixing this from your end, since I believe it's a bug on opcode, but it's fixable if you modify the...