Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jmurphy1267's avatar

cURL error 7: Failed to connect to studious.test port 80:

I am trying to develop a login controller that returns a password grant token for my iOS app and I am getting this error cURL error 7: Failed to connect to studious.test port 80: . When I call the api with guzzle.

$response = $http->post('http://studious.test/oauth/token', [
                'form_params' => [
                    'grant_type' => 'password',
                    'client_id' => env('PASSWORD_GRANT_CLIENT'),
                    'client_secret' => env('PASSWORD_GRANT_SECRET'),
                    'username' => request('email'),
                    'password' => request('password'),
                    'scope' => '',
                ],
            ]);

I am using laradock right now.

0 likes
0 replies

Please or to participate in this conversation.