I want to try out the guzzle library and am following through their quickstart tutorial to make http requests to an api.
Yet it doesn't seem to work, because I get the following error:
cURL error 3: <url> malformed
Since I have never worked with cURL before, I don't even know how to respond to that error message. Here is my code with the request I am making:
$client = new Client();
$client->get('/', ['verify' => true]);
$response = $client->get('https://api.github.com/');
dd($response);
I am using the Laravel 5 framework and calling the index method in my HomeController. Also am using WAMP.
I would appreciate any help and suggestion, because I would like to try Guzzle out.
Here is a picture of the Error Message I get:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…