My server gets:
GET /jibberish HTTP/1.1
Host:
127.0.0.1:80
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
I sent a packet full of nonsense, chrome says,"This page is not working."
I tried sending this packet "HTTP/1.1 200 OK\nDate: Wed, 24 Jul 2019 05:07:53 GMT\nServer: Custom (Win64)\nLast-Modified: Wed, 24 Jul 2019 04:16:26 GMT\nETag: \"4014300565a5-2c-3e94b66c2e410\"\nAccept-Ranges: bytes\nContent-Length: 44\nConnection: close\nContent-Type: text/html; charset=UTF-8\nX-Pad: avoid browser bug\n<html><body><h1>It works!</h1></body></html>"
Chrome just hangs... any further help?