Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-06-2008, 12:59 PM   #1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,619

Rep: Reputation: 49
test a remote proxy from the command line


howto test a remote proxy from the command line ?
proxy port should be open:
# telnet 3128
Connected to
Escape character is '^]'.
but what are next steps to test HTTP ?

I have debian Etch stable on the local machine and on the proxy server.
Old 06-06-2008, 02:05 PM   #2
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
hmm... why can't you just configure this proxy in your browser and test?
Sorry, I missed the command line part.
export http_proxy=http://remote.proxyort
no use wget to get a page

Last edited by sarin; 06-06-2008 at 02:12 PM. Reason: did not see the full question
Old 09-22-2014, 06:44 AM   #3
LQ Newbie
Registered: Jul 2013
Posts: 18

Rep: Reputation: Disabled

Use the following syntax to configure the proxy for http, https and ftp traffic on the Linux command line :

$ export http_proxy="http://proxy-server:port"
$ export https_proxy="https://proxy-server:port"
$ export ftp_proxy="http://proxy-server:port"
Use the following syntax if the proxy server requires authentication :
$ export http_proxy="http://user:password@proxy-server:port"
$ export https_proxy="https://user:password@proxy-server:port"
$ export ftp_proxy="http://user:password@proxy-server:port"
Testing Proxy
Use the following command to check current proxy settings :
$ env | grep -i proxy
You can test the proxy by checking your public IP address from the command line :
$ wget -q -O - \ | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
You may also use the time command to test the differences in the connection speed with proxy and without it :
$ time wget -q -O - \ | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Bandwidth test? vonedaddy Linux - Newbie 8 09-22-2014 07:34 PM
command-line speed test zmeda Linux - Networking 5 09-22-2014 09:02 AM
Command line only Proxy setup Xorgroth Debian 4 04-03-2008 04:37 PM
howto print a test page from command line ? cccc Debian 1 05-18-2007 07:46 AM
LXer: Adodb Multiple Test Scripts Remote Command Execution ... LXer Syndicated Linux News 0 01-09-2006 07:01 PM

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration