In python:
the http/1.1 request header is :
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
request_header = 'GET {} HTTP/1.1\r\nhost: {}\r\nConnection: close\r\n' \
'Accept-Encoding: gzip,deflate\r\n\r\n'.format(path, host)
s = s.send(request_header.encode())
In my question is , what does the http/2 request_header like?
anyone can help me !! thanks
I've been looking at a lot of resources, but there are no examples of how to create HTTP/2 requests using sockets