http2 stuff
need some illumination
its like a top secret subject, can't find much good information on this stuff.. the framing i figured out with the specs/websocket info
this line in question:
$original = ":method:GET\r\n:scheme:http\r\n:authority:www.goo gle.com\r\n:path:/\r\naccept-encoding:gzip";
I got the frame and compression etc right, just not sure why the server is hanging
$original = ":method:GET\r\n:scheme:http\r\n:authority:www.google.com\r\n:path:/\r\naccept-encoding:gzip";
$huffman = new Huffman();
$compressed = $huffman->compress($original);
$url = "www.google.com";
$hosty = gethostbyname($url);
$port = 80;
$fp = @fsockopen($hosty, $port, $errno, $errstr, 2);
fwrite($fp, frame($compressed)) or die('error:'.$errno.':'.$errstr);
$data = fread($fp, 4096);
-
kingjpm -
Thanks
SignatureRogueDen.com{{ DiscussionBoard.errors[10649648].message }} -