LinuxQuestions.org
Register a domain and help support LQ
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 08-06-2003, 05:18 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
telnet to port 80


Someone once told me that you could connect to port 80 via telnet in the same way that you could connect to port 25 for an SMTP conversation. I've tried this, with little success. Anyone heard of this?

Dave
 
Old 08-06-2003, 05:26 AM   #2
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Thumbs up

Ahhh. Always check your firewall is open ;-)
 
Old 08-06-2003, 06:48 AM   #3
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 17
Another possibility is the that on the host you are connecting to, there is no program listening on port 80. Anyway, after

telnet somehost:80

you can send HTTP commands directly to somehost. Unless you are diagnosing some HTTP problem, I cant see any use for this.
 
Old 08-06-2003, 08:33 AM   #4
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
The reason for trying this is a valid one. I have a box that I'd like to interegate remotely to ensure a web server is still up and functioning. I can write a script that'll poll port 80 every minute through crontab, and report back if it can't get a specified page, say index.html.

Dave
 
Old 08-06-2003, 09:56 AM   #5
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Might just be easier just using wget something like

Code:
#!/bin/bash
                                                                                
                                                                                
if ! wget http://www.mywebsite.com/index.html > /dev/null 2>&1;
 then
  echo "There was an error";
  exit;
fi
                                                                                
rm index.html
 
Old 08-06-2003, 04:09 PM   #6
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
The things you learn...!

Thanks for that. I've never come across wget before. I'll have a play about with it at work tomorrow. I see there's a AIX version as well, which should save me a lot of hassle. ;-)

Dave
 
  


Reply


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
cannot telnet port 25 varun_saa Mandriva 2 12-31-2006 12:25 AM
telnet to different port kenhrl Linux - Networking 3 10-29-2004 05:15 PM
Can't telnet to port 25 scooby_scrappy Linux - Networking 1 05-15-2002 03:28 AM
telnet port 80 doodah Linux - Networking 4 04-27-2001 09:01 AM


All times are GMT -5. The time now is 04:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration