I currently have the following Guzzle 6 implementation returning a stream of JSON data containing user data: $client = new GuzzleHttpClient([ ‘base_uri’ => ‘https://www.apiexample.com’, …
Tag: guzzle6
What’s the equivalent of GuzzleHttpEventSubscriberInterface in Guzzle 6?
In Guzzle 5.3 you can use event subscribers as in the following example: use GuzzleHttpEventEmitterInterface; use GuzzleHttpEventSubscriberInterface; use GuzzleHttpEventBeforeEvent; use …
Proper way to send (POST) xml with guzzle 6
I want to perform a post with guzzle sending an xml file. I did not find an example. What I ‘ve done so far is : No matter what I try I get back error -1 which means that xml is not valid. XML that I send passes online validation though and is valid %100 Please help. Answer After some
Response logging in AWS PHP SDK v3
In v2 of the AWS PHP SDK, I was able to setup logging of request and response information by simply doing this: In v3, I cannot seem to find the solution. Middlewares do not seem helpful as they only fire before the request is sent, and thus I cannot access the response HTTP code. Guzzle v6 has this feature built