Skip to content
Advertisement

Guzzle returns cURL error 3: malformed

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:

JavaScript

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:

JavaScript

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:

Laravel 5 Error Message

Advertisement

Answer

If you want to disable verification (don’t do this!):

JavaScript

Rather than disabling verification entirely, this can likely be fixed by providing proper CA bundle file. See verify in Guzzle documentation.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement