while, technical speaking, the header capitalization doesn't matter, i would like to have the option to have a camel-case-styled headers send to the server. I'd love to have the requests as browser-like as possible.
Example 1 ("bad" aka "what you get now at version 3.2"):
accept-encoding: gzip, deflate
Example 2 ("good"):
Accept-Encoding: gzip, deflate
I made myself a simple helper function to aquire this:
protected function convertHeaderFieldNameToCamelCase($input) {
return mb_convert_case($input, MB_CASE_TITLE, "UTF-8");
}
Hi,
while, technical speaking, the header capitalization doesn't matter, i would like to have the option to have a camel-case-styled headers send to the server. I'd love to have the requests as browser-like as possible.
Example 1 ("bad" aka "what you get now at version 3.2"):
accept-encoding: gzip, deflate
Example 2 ("good"):
Accept-Encoding: gzip, deflate
I made myself a simple helper function to aquire this:
This function should be called in https://github.com/FriendsOfPHP/Goutte/blob/master/Goutte/Client.php#L152 Something like:
I can provide a PR, if you want.