Guzzle unconsciously upgrade to six, after upgrading and the original 3.* when the usage is not the same, look at the document also confused, looked for a long time to find the usage from the document:
POST
$response$client->request('POST''http://httpbin.org/post', [ 'form_params' => [ 'field_name''abc', 'other_field''123', 'nested_field' => [ 'nested''hello' ] ]]);$result$response->getBody();
GET
$client=new Client();$res=$client->request('GET'$url."?param1=1¶m2=9");$result=$res->getBody();
It is very convenient to speak the truth.
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes PHP with Guzzule 6 to send HTTP requests, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.