charl's avatar

guzzle http with basic auth example

Iv'e been trying to get a basic api request to work. Tried numerous examples and just can't get it working.

Basically the request would look like this:

URL: http://example.com/api/test Header: Authorization Value: Basic xxxsomekeykerexxx

I can the request just fine in postman though following the laracasts guzzle tutorial (https://laracasts.com/lessons/http-requests-with-guzzle) and guzzlehttp induction, I cant find an actual working example.

Any her would greatly be appreciated.

0 likes
4 replies
charl's avatar

Finally found a working solution - will post

1 like
Inwave's avatar

@charl I am having the same issue. Can you please share the solution?

Please or to participate in this conversation.