<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000771" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000771</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003370</link>
    <description> &lt;p&gt;FH,&lt;/p&gt;
&lt;p&gt;You would have to parse the fetched page before writing it to the local file. To do that, you&#039;d have to use a couple of regular expressions.&lt;/p&gt;
&lt;p&gt;You can read more on regular expressions at &lt;a href=&quot;http://www.perl.com/CPAN&quot; class=&quot;bb-url&quot;&gt;http://www.perl.com/CPAN&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Sep 1999 18:33:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1003370 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003368</link>
    <description> &lt;p&gt;this is the only way (I know of right now) to advance the pointer to where I want it to point to (I am SURE there is a better way!)&lt;/p&gt;
&lt;p&gt;I just wanted to thank everybody for&lt;br /&gt;
a) not laughing to hard !&lt;br /&gt;
b) your suggestions&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Sep 1999 03:56:00 +0000</pubDate>
 <dc:creator>keithl</dc:creator>
 <guid isPermaLink="false">comment 1003368 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003369</link>
    <description> &lt;p&gt;i&#039;ll try this question again.&lt;/p&gt;
&lt;p&gt;how exactly would i pinpoint just the info i wanted to be saved to a text file instead of the whole page. for example, the header on my site &amp;quot;birmingham alabama jobs...&amp;quot; &lt;a href=&quot;http://www.birminghamnet.com&quot; class=&quot;bb-url&quot;&gt;birminghamnet.com&lt;/a&gt;. how would i specify the header as the only thing i wanted saved to a txt file?&lt;/p&gt;
&lt;p&gt;thanks in advance &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
&lt;strong&gt;My Site Got Hacked, Check It Out!&lt;/strong&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.birminghamnet.com&quot; class=&quot;bb-url&quot;&gt;http://www.birminghamnet.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Sep 1999 01:00:00 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1003369 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003367</link>
    <description> &lt;p&gt;You must add the correct content headers before printing anything to a browser.&lt;br /&gt;
add this line: print &amp;quot;content-type: text/html\n\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;Something that catched my attention is the repetition of $line=&amp;lt;FILE&amp;gt;; -- What are you trying to acomplish with this?&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Sep 1999 19:46:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1003367 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003366</link>
    <description> &lt;p&gt;keithl: Try this modification.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;...&lt;/strong&gt;&lt;br /&gt;
open (FILE, $t);&lt;br /&gt;
my $att=0;&lt;br /&gt;
print &amp;quot;Content-Type: text/html\n\n&amp;quot;;&lt;br /&gt;
while ( ( $att ==0 ))&lt;br /&gt;
{&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
&lt;strong&gt;...&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Sep 1999 19:02:00 +0000</pubDate>
 <dc:creator>Stefen Enns</dc:creator>
 <guid isPermaLink="false">comment 1003366 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003365</link>
    <description> &lt;p&gt;here is the source, Please keep in mind that I am a complete novice at this !!! so dont laugh too hard  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;#!/usr/bin/perl&lt;br /&gt;
use LWP::Simple;&lt;br /&gt;
$ft=get(&amp;quot;http://finance.yahoo.com/q?s=hhs&amp;amp;d=v1&amp;quot;);&lt;br /&gt;
open (F,&amp;quot;&amp;gt;&amp;gt;hhs.htm&amp;quot;);&lt;br /&gt;
print F $ft;&lt;br /&gt;
close F;&lt;/p&gt;
&lt;p&gt;$t=&amp;quot;hhs.htm&amp;quot;;&lt;br /&gt;
open (FILE, $t);&lt;br /&gt;
my $att=0;&lt;/p&gt;
&lt;p&gt;while ( ( $att ==0 ))&lt;br /&gt;
    {&lt;br /&gt;
        $line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
        chomp ( $line );&lt;br /&gt;
        if ($line eq &amp;quot;&amp;lt;th nowrap&amp;gt;More Info&amp;lt;/th&amp;gt;&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
           $att=1;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
$line=&amp;lt;FILE&amp;gt;;&lt;br /&gt;
print $line;&lt;br /&gt;
close (FILE);&lt;br /&gt;
open (QUOTE, &amp;quot;&amp;gt;&amp;gt;stock.txt&amp;quot;);&lt;br /&gt;
print QUOTE $line;&lt;br /&gt;
close (QUOTE);&lt;/p&gt;
&lt;p&gt;would anybody have any idea why this would work when I execute the script through telnet and NOT when I execute through the browser? (I set all permissions on ALL files to 755)&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Sep 1999 18:57:00 +0000</pubDate>
 <dc:creator>keithl</dc:creator>
 <guid isPermaLink="false">comment 1003365 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003364</link>
    <description> &lt;p&gt;Keithl, what&#039;s the source for this CGI file. It sounds interesting and I would like to check it out.&lt;/p&gt;
&lt;p&gt;-steve&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 Sep 1999 16:44:00 +0000</pubDate>
 <dc:creator>Steve</dc:creator>
 <guid isPermaLink="false">comment 1003364 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003363</link>
    <description> &lt;p&gt;fairhousing-&lt;/p&gt;
&lt;p&gt;i parsed the .htm file (which is now a .txt file) until I found the phrase that was above the stock line. Then saved the stock line . It could probably be done much quicker and cleaner, like I said - I am just starting to learn Perl!&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 Sep 1999 16:32:00 +0000</pubDate>
 <dc:creator>keithl</dc:creator>
 <guid isPermaLink="false">comment 1003363 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003362</link>
    <description> &lt;p&gt;to take this a step further how could one specify which parts of the page to save and which parts not to save to a txt file. this way the exact info wanted could be saved without all the other garbage.&lt;/p&gt;
&lt;p&gt;thanks in advance &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
&lt;strong&gt;My Site Got Hacked, Check It Out!&lt;/strong&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.birminghamnet.com&quot; class=&quot;bb-url&quot;&gt;http://www.birminghamnet.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 12 Sep 1999 23:54:00 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1003362 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/anyone-know-how-save-url-request-txt-file-through-cgi-i-want-access-another-pag#comment-1003360</link>
    <description> &lt;p&gt;actually, I wanted to use this as an excercise in Perl. I just started reading up on it and I am very new to this! I was trying to pull stock tickers from yahoo. I was able to write the script, changed permissions to 755 and it errored out. But when I telnet to my server and type &amp;quot;perl (program name).pl&amp;quot; it works?&lt;/p&gt;
&lt;p&gt;you said there were some better ways. Could you please expand a little on that? you can email me directly or put it on the forum&lt;/p&gt;
 </description>
     <pubDate>Sun, 12 Sep 1999 00:11:00 +0000</pubDate>
 <dc:creator>keithl</dc:creator>
 <guid isPermaLink="false">comment 1003360 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
