How to send a 'hand coded' http request? -
for test , learning purpose, console available send http request like
/index.html http/1.1␍␊ host: www.example.com␍␊ ␍␊
and response.
i know curl pretty handy, what explore what's under hood
or write request in text file , send curl?
grab hold of netcat
tool:
echo -en 'get /index.html http/1.1\r\nhost: stackoverflow.com\r\n\r\n' | nc stackoverflow.com 80
Comments
Post a Comment