I'm trying to login into a service (Jasper Server API) using the Http Client, but cant get the cookies from the response
This is what I'm doing:
$response = Http::withOptions( [ 'proxy' => '' ] )->
post('192.168.52.84/jasperserver/rest_v2/login?j_username=user&j_password=password');
$cookies=$response->cookies;
dd($cookies);
The output being:
GuzzleHttp\Cookie\CookieJar {
-cookies: []
-strictMode: false
}
When I do the same Get on the browser I get the cookies fine.
What could be the problem?