I'm making a request using the Laravel Http Client, and I want to know the exact headers that will be sent (or were sent) in the request. I'm not trying to set them. I want to read them.
Does anybody know how I can do this?
You should enable debug output, like so :
$client->request('POST', $url, ['form_params' => [$value], 'debug' => true]);
check document
https://docs.guzzlephp.org/en/stable/request-options.html#debug
You should enable debug output, like so :
check document
https://docs.guzzlephp.org/en/stable/request-options.html#debug