LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-19-2014, 07:00 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 532

Rep: Reputation: Disabled
Command to check if open proxy works


Hello,

please what is the least server resources intensive linux command to veriffy an open proxy works.

I mean one should probably send and receive any data via this proxy? and if data found it returns true

Assuming proxy is 1.2.3.4:1080

I used this: curl -x $proxy $url --connect-timeout 8 --max-time 20

but it appears my proxy timeout, but still connect, not sure if after timeout no proxy is used, so i want to load via proxy or return false

Last edited by postcd; 03-19-2014 at 07:38 AM.
 
Old 03-20-2014, 03:54 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,893

Rep: Reputation: 163Reputation: 163
You can use telnet to check proxy connection, like following.
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
 
  


Reply

Tags
proxy


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
[SOLVED] How do I enable proxy NDP (proxy ARP works) Skaperen Linux - Networking 5 11-05-2012 02:18 AM
How to check connection through proxy kkpal Programming 2 07-27-2008 11:55 PM
How to check connection through proxy kkpal Linux - Newbie 2 07-24-2008 11:54 AM
How I can check my proxy server shahg_shahg Linux - Networking 0 01-17-2005 02:41 AM
how to check if ntpd works jetfreggel Linux - Networking 6 11-30-2002 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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