Skip to content

Instantly share code, notes, and snippets.

@ArtemGr
Last active April 10, 2023 18:59
Show Gist options
  • Save ArtemGr/5490781 to your computer and use it in GitHub Desktop.
Save ArtemGr/5490781 to your computer and use it in GitHub Desktop.

Revisions

  1. ArtemGr revised this gist Jun 7, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion example.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # http://aaronhawley.livejournal.com/12621.html
    (echo -en "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80
    # Also:
    perl -e '$| = 1; print "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep (1)' | telnet localhost 80
    perl -e '$| = 1; print "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep (1)' | telnet localhost 80
    # Also (from https://github.com/ellzey/libevhtp/issues/86#issuecomment-19137572):
    (echo -en "GET /1 HTTP/1.1\r\n\r\nGET /2 HTTP/1.1\r\n\r\n"; sleep 0.1) | nc localhost 8081
  2. ArtemGr revised this gist May 16, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # http://aaronhawley.livejournal.com/12621.html
    (echo -e "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80
    (echo -en "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80
    # Also:
    perl -e '$| = 1; print "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep (1)' | telnet localhost 80
  3. ArtemGr revised this gist May 8, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion example.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    # http://aaronhawley.livejournal.com/12621.html
    (echo -e "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80
    (echo -e "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80
    # Also:
    perl -e '$| = 1; print "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep (1)' | telnet localhost 80
  4. ArtemGr created this gist Apr 30, 2013.
    2 changes: 2 additions & 0 deletions example.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # http://aaronhawley.livejournal.com/12621.html
    (echo -e "GET / HTTP/1.1\nHost: fropl.com\n\nGET / HTTP/1.1\nHost: fropl.com\n\n"; sleep 0.1) | telnet localhost 80