by dsego · 4y ago · 0 comments
GET / HTTP/1.1
Cookie:
Accept: text/html,...
Host: news.ycombinator.com
Accept-Language: en-GB,en;q=0.9
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
And the I can just run it like so `http myRequest.http`
There are some decade old sublime text plugins that claim to do this, but none of them seem to work anymore, from what I'm seeing. curl -v -H @request1.txt neverssl.com
With a request1.txt header file X-Header: mine
User-Agent: bob
Will generate a request of > GET / HTTP/1.1
> Host: neverssl.com
> Accept: */*
> X-Header: mine
> User-Agent: bob
You end up needing to know 3 options. -X <METHOD> to specify the HTTP method, -d @<file> if you want to send a request body, and -H.https://marketplace.visualstudio.com/items?itemName=humao.re...
cat myRequest.http | netcat example.com 80
https://prestigemad.com/ https://news.ycombinator.com/item?id=27412445
Not robust, but it comes with all systems for free.
openssl s_client -connect example.com:443