How to test an HTTP proxy by using telnet

What you need

What to do

The initial telnet: > symbolises your shell prompt.

We will contact an SMTP server, but this is just an example; we could just as well connect to a POP, NNTP or other service.

telnet: > telnet proxy.example.com 8080
telnet: Trying 192.0.2.2...
telnet: Connected to 192.0.2.2.
telnet: Escape character is '^]'.
client: CONNECT mx1.example.com:25 HTTP/1.0

server: HTTP/1.0 200 Connection established

server: 220 mx1.example.com ESMTP server ready Thu, 5 Feb 2004 00:38:22 +0200

Google’s use of the DART cookie enables Google to serve ads to you based on your visits to this and other websites. If you do not wish to use the DART cookie, please opt out on the privacy policy page for Google’s ad-and-content network. Additionally, you can usually specify your cookie preferences in your browser settings.

Any trademarks or registered trademarks mentioned on this site belong to their respective owners. Conventional hyperlinking to this site is welcome. However, none of the content on this site may be shown, even partly, in a context inferring or claiming it to be part of or sponsored by any other organisation or site. Such prohibited techniques include (but are not limited to) framesets, interstitial pages, kiosk mode pop-ups and reverse proxies. — For information on advertising, please click on the ‘Ads by Google’ or ‘AdChoices’ link next to any advertisement.

54.242.140.11 ec2-54-242-140-11.compute-1.amazonaws.com
(none) CCBot/2.0 (http://commoncrawl.org/faq/)
/misc/telnet-troubleshooting/http-proxy.shtml /misc/telnet-troubleshooting/http-proxy.shtml Sunday, 23-Nov-2014 11:51:36 GMT