15 } catch (Exception $e) {
21 echo new http\Message("HTTP/1.1 99 Apples in my Basket");
25 echo new http\Message("CONNECT HTTP/1.1");
28 echo new http\Message("HTTP/1.1");
29 echo new http\Message("CONNECT www.example.org:80 HTTP/1.1");
35 exception 'http\Exception\BadMessageException' with message 'http\Message::__construct(): Failed to parse headers: unexpected character '\057' at pos 4 of 'HTTP/1.1 99 Apples in my Basket'' in %sinfo002.php:%d
37 #0 %sinfo002.php(%d): http\Message->__construct('HTTP/1.1 99 App...')
38 #1 %sinfo002.php(%d): {closure}()
39 #2 %sinfo002.php(%d): trap(Object(Closure))
41 exception 'http\Exception\BadMessageException' with message 'http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 7 of 'CONNECT HTTP/1.1'' in %sinfo002.php:%d
43 #0 %sinfo002.php(%d): http\Message->__construct('CONNECT HTTP/1....')
44 #1 %sinfo002.php(%d): {closure}()
45 #2 %sinfo002.php(%d): trap(Object(Closure))
48 CONNECT www.example.org:80 HTTP/1.1