{"action":"opened","issue":{"url":"https://api.github.com/repos/php-http/curl-client/issues/18","repository_url":"https://api.github.com/repos/php-http/curl-client","labels_url":"https://api.github.com/repos/php-http/curl-client/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/php-http/curl-client/issues/18/comments","events_url":"https://api.github.com/repos/php-http/curl-client/issues/18/events","html_url":"https://github.com/php-http/curl-client/issues/18","id":139248309,"number":18,"title":"Handle 100-continue","user":{"login":"fyfey","id":1757359,"avatar_url":"https://avatars.githubusercontent.com/u/1757359?v=3","gravatar_id":"","url":"https://api.github.com/users/fyfey","html_url":"https://github.com/fyfey","followers_url":"https://api.github.com/users/fyfey/followers","following_url":"https://api.github.com/users/fyfey/following{/other_user}","gists_url":"https://api.github.com/users/fyfey/gists{/gist_id}","starred_url":"https://api.github.com/users/fyfey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyfey/subscriptions","organizations_url":"https://api.github.com/users/fyfey/orgs","repos_url":"https://api.github.com/users/fyfey/repos","events_url":"https://api.github.com/users/fyfey/events{/privacy}","received_events_url":"https://api.github.com/users/fyfey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T11:07:34Z","updated_at":"2016-03-08T11:07:34Z","closed_at":null,"body":"I would like to add the ability to handle a 100-continue status from the server as I just hit a bug where it would get the following response:\r\n\r\n```http\r\nHTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 200 OK\r\nDate: Tue, 08 Mar 2016 10:34:43 GMT\r\nServer: Apache/2.2.22 (Debian)\r\nX-Powered-By: PHP/5.4.45-0+deb7u2\r\netc\r\n```\r\nIt gets the initial header line and then throws an exception parsing `HTTP/1.1 200 OK` as a header due to the missing colon.\r\n\r\nCould we check the initial status line for this status, and then discard the first 2 lines and resume parsing the actual response?"}}