jeudi 24 mai 2018

cURL error 3:

please I am storing the BASE URL for an endpoint in my .env file and calling this endpoint in my controller. When I do this:

$request = $client->get(env('URI').'/positions');

I get this error - cURL error 3: malformed

But when I do this -

$url = env('URI');
$request = $client->get($url.'/positions');

It works. What might be the problem here?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2x95m5J
via IFTTT

Aucun commentaire:

Enregistrer un commentaire