Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
5 events
when toggle format what by license comment
Jun 9, 2017 at 7:26 comment added Geoffrey It can appear legitimately, but your answer is incorrect. Content-Length does not have to be present in a HTTP response. The correct method to manually parse the headers is to look for the first instance of \r\n (or \n\n). This could be done simply by limiting explode to return only two elements, ie: list($head, $body) = explode("\r\n\r\n", $response, 2);, however CURL already does this for you if you use curl_setopt($ch, CURLOPT_HEADERFUNCTION, $myFunction);
May 23, 2017 at 11:55 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Jul 19, 2016 at 4:30 history edited mal CC BY-SA 3.0
more acurately answer the original question
Jul 15, 2016 at 14:56 review Late answers
Jul 15, 2016 at 14:59
Jul 15, 2016 at 14:41 history answered mal CC BY-SA 3.0