![]() ![]() ![]() This version will retain duplicated headers It also converts all headers to lowercase for consistent handling across servers and HTTP versions. Here is a very clean method of performing this using PHP closures. The most correct method is using CURLOPT_HEADERFUNCTION. Detecting the size of the headers via CURLINFO_HEADER_SIZE is also not always reliable, especially when proxies are used Curl-1204 or in some of the same redirection scenarios.Not all servers are standards compliant and transmit just a \n for new lines (and a recipient may discard the \r in the line terminator) Q
0 Comments
Leave a Reply. |