Note that the HTTP wrapper has a hard limit of 1024 characters for the header lines.
Any HTTP header received that is longer than this will be ignored and won't appear in $http_response_header.
The cURL extension doesn't have this limit.
http_fopen_wrapper.c: #define HTTP_HEADER_BLOCK_SIZE 1024