Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 6 make http request

$client = new GuzzleHttpClient();
$res = $client->get('https://api.github.com/user', ['auth' =>  ['user', 'pass']]);
echo $res->getStatusCode(); // 200
echo $res->getBody(); // { "type": "User", ....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #http #request
ADD COMMENT
Topic
Name
2+7 =