- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- use telnet to retrieve web page in script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 12:54 AM
10-29-2003 12:54 AM
++++++++++++++++++++++++
telnet server port <
EOF
++++++++++++++++++++++++
In HP-UX it displays the content of the page.
But in Linux, it does not. What do I need to change to make it work in Linux. I am using RedHat. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 01:06 AM
10-29-2003 01:06 AM
Re: use telnet to retrieve web page in script
GET http://site/page
works fine on my redhat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 01:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 01:11 AM
10-29-2003 01:11 AM
Re: use telnet to retrieve web page in script
Perhaps you could tell us how it isn't working but try sending a string like this
GET /page HTTP/1.1\nHost: $HOSTNAME\n\n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 01:11 AM
10-29-2003 01:11 AM
Re: use telnet to retrieve web page in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 10:08 AM
10-29-2003 10:08 AM
Re: use telnet to retrieve web page in script
Charles, using wget is your best option (or using 'lynx -source'), but the reason your telnet routne didn't work is because it was exiting as soon as it had sent the string.
The trick to doing that sort of thing with telnet is to 'sleep' for a while to await the response. Please note however that this is a truely dumb way to do it :P But it can be done. e.g.
( echo "GET /page"; sleep 5 ) | telnet host port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:29 AM
09-15-2005 03:29 AM