<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: use telnet to retrieve web page in script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850671#M44712</link>
    <description>telnet servername port&lt;BR /&gt;GET http://site/page&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;works fine on my redhat&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Oct 2003 09:06:24 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2003-10-29T09:06:24Z</dc:date>
    <item>
      <title>use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850670#M44711</link>
      <description>I have use the following in HP-UX and it works:&lt;BR /&gt;++++++++++++++++++++++++&lt;BR /&gt;telnet server port &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;GET /page&lt;BR /&gt;EOF&lt;BR /&gt;++++++++++++++++++++++++&lt;BR /&gt;In HP-UX it displays the content of the page.&lt;BR /&gt;But in Linux, it does not.  What do I need to change to make it work in Linux.  I am using RedHat. Thanks.</description>
      <pubDate>Wed, 29 Oct 2003 08:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850670#M44711</guid>
      <dc:creator>Charles Li_1</dc:creator>
      <dc:date>2003-10-29T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850671#M44712</link>
      <description>telnet servername port&lt;BR /&gt;GET http://site/page&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;works fine on my redhat&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2003 09:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850671#M44712</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-10-29T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850672#M44713</link>
      <description>Try wget&lt;BR /&gt;&lt;BR /&gt;best read man wget first&lt;BR /&gt;&lt;BR /&gt;Tell us if you need more&lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2003 09:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850672#M44713</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-29T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850673#M44714</link>
      <description>I don't understand why this works at all in anything.  The http protocol requires you send a get , the url and the HTTP version and the hostname before you get any response from teh server. &lt;BR /&gt; &lt;BR /&gt;Perhaps you could tell us how it isn't working but try sending a string like this &lt;BR /&gt;&lt;BR /&gt;GET /page HTTP/1.1\nHost: $HOSTNAME\n\n&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2003 09:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850673#M44714</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-29T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850674#M44715</link>
      <description>Thanks.  wget works.  I was using the telnet in a script, and it did not work.  Thanks for all your replies.</description>
      <pubDate>Wed, 29 Oct 2003 09:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850674#M44715</guid>
      <dc:creator>Charles Li_1</dc:creator>
      <dc:date>2003-10-29T09:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850675#M44716</link>
      <description>Mark, A HTTP in it's most bastardised way can be used as above.  If following protocol you need other bits and pieces.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;( echo "GET /page"; sleep 5 ) | telnet host port</description>
      <pubDate>Wed, 29 Oct 2003 18:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850675#M44716</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-10-29T18:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: use telnet to retrieve web page in script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850676#M44717</link>
      <description>.</description>
      <pubDate>Thu, 15 Sep 2005 10:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/use-telnet-to-retrieve-web-page-in-script/m-p/4850676#M44717</guid>
      <dc:creator>Charles Li_1</dc:creator>
      <dc:date>2005-09-15T10:29:46Z</dc:date>
    </item>
  </channel>
</rss>

