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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -