From 86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 28 Sep 2016 16:56:01 +0200 Subject: handle continue header in curl result --- it_url.class | 2 ++ 1 file changed, 2 insertions(+) diff --git a/it_url.class b/it_url.class index 4552cf5..f9b9e34 100644 --- a/it_url.class +++ b/it_url.class @@ -339,6 +339,8 @@ function request_curl($p=array()) if ($got) { list($url->header, $url->data) = explode("\r\n\r\n", $got, 2); + if (preg_match('#^(HTTP\S+)\s100\sContinue$#', $url->header)) + list($url->header, $url->data) = explode("\r\n\r\n", $url->data, 2); $url->header .= "\r\n\r\n"; $url->parse_http_header($url->header); -- cgit v1.2.3