GuzzleHTTP how to get Request Header

Viewed 3715

I want to print out the request header of a POST request, but I can't find the answer by searching the web. Can someone explain how to do this?

I have this array that I pass in the POST request as $value. I want to see how it's parsed in the GuzzleHTTP POST request.

Array example

Array
(
    [username] => admin

    [password] => pass

    [submit] => login

)

$client->request('POST', $url, [
                            'form_params' => [
                                $value
                            ]
                        ]);
1 Answers
Related