diff options
author | Nathan Gass | 2016-09-28 16:56:01 +0200 |
---|---|---|
committer | Nathan Gass | 2016-09-28 16:56:01 +0200 |
commit | 86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0 (patch) | |
tree | 4b81e6f911b599f9937d89dfae7c3fcde672accf | |
parent | 86e59adbac6783c9c5af386aeb1f48b9ef1575cb (diff) | |
download | itools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.tar.gz itools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.tar.bz2 itools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.zip |
handle continue header in curl result
-rw-r--r-- | it_url.class | 2 |
1 files changed, 2 insertions, 0 deletions
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); |