1 replies
anyone know if this is the correct way to format a header get request for HTTP2
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

PHP Code:

$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$errstr2);
fwrite($fpframe($compressed)) or die('error:'.$errno.':'.$errstr);
$data fread($fp4096); 
#http2 #stuff
  • Profile picture of the author kingjpm
    Never mind figured it out with perl client code. For php I used curl, but like perl code package because it offered in depth detail on how the streaming worked and support I read some rumors about PHP built in support soon ....crossing fingers
    Signature
    RogueDen.com
    {{ DiscussionBoard.errors[10649648].message }}

Trending Topics