Scripting an HTTP header request with netcat

后端 未结 5 1667
渐次进展
渐次进展 2020-12-08 11:04

I\'m trying to play around with netcat to learn more about how HTTP works. I\'d like to script some of it in bash or Perl, but I\'ve hit upon a stumbling block early on in m

5条回答
  •  北海茫月
    2020-12-08 11:40

    Another way is to use what is called the 'heredoc' convention.

    $ nc -n -i 1 10.1.1.2 80 < HEAD / HTTP/1.0
    >
    > EOF
    

提交回复
热议问题