HTTP Range Requests Script

This is the script I use to demonstrate HTTP Range requests through Telnet. Just copy and paste each block of code (including the trailing blank line) into a command window and it will run telnet and make the HTTP request.

telnet www.davinciunltd.com 80
HEAD /http/httptestfile.txt HTTP/1.1
Host: www.davinciunltd.com
Connection: close

telnet www.davinciunltd.com 80
GET /http/httptestfile.txt HTTP/1.1
Host: www.davinciunltd.com
Connection: close

telnet www.davinciunltd.com 80
GET /http/httptestfile.txt HTTP/1.1
Host: www.davinciunltd.com
Range: bytes=115-154
Connection: close

telnet www.davinciunltd.com 80
GET /http/httptestfile.txt HTTP/1.1
Host: www.davinciunltd.com
Range: bytes=78-113
Connection: close

telnet www.davinciunltd.com 80
GET /http/httptestfile.txt HTTP/1.1
Host: www.davinciunltd.com
Range: bytes=127-127,115-154
Connection: close

Leave a Reply