For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > March 2004 > GET doesn't work!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GET doesn't work!
Captain Nemo

2004-03-18, 6:47 pm

Hi

I'm running Red Hat 9 on an IBM Thinkpad and I've not done any perl
programming up to now. I'm working on a project which requires downloading
files from other webservers, and the obvious way would seem to be the perl
GET script.

However, on my system it doesn't work. Whatever arguments or options you
give it, it just hangs.

As far as I know, perl is working OK. I've tried running other scripts with
the --help option and they respond appropriately.

Is there some daemon I need to have running for GET, POST and HEAD to work?


Matt Garrish

2004-03-18, 6:47 pm


"Captain Nemo" <Captain@NoSpam.com> wrote in message
news:f6Q1c.8908$E77.119629020@news-text.cableinet.net...
> Hi
>
> I'm running Red Hat 9 on an IBM Thinkpad and I've not done any perl
> programming up to now. I'm working on a project which requires

downloading
> files from other webservers, and the obvious way would seem to be the perl
> GET script.
>
> However, on my system it doesn't work. Whatever arguments or options you
> give it, it just hangs.
>


I can't see into your machine to figure out what might be wrong, so I'll
just suggest that you try the following one-liner instead:

perl -MLWP::Simple -e
'getprint("http://www.perldoc.com/perl5.8.0/lib/lwpcook.html")'

And then read that page for more info on how to use the LWP::Simple module
to grab pages for you.

Matt


Ben Measures

2004-03-18, 6:47 pm

Captain Nemo wrote:
>
>
> I'm not on my Linux partition right now but this is what I
> recall
>
> I typed:
> $ which GET
>
> and got
> /usr/bin/GET
>
> I then typed
> $ rpm -qf /usr/bin/GET
>
> and got something with 'perl' and 'www' in it
>
> I cd'd to /usr/bin and loaded GET into Emacs
>
> It looks like a perl script to me. Also if I type:
>
> $ man GET
>
> I get a lot of stuff about perl.
>
> This is about all I can tell you. I don't understand what you
> mean about the 'cgi GET'. Isn't most CGI stuff written in perl?
>
>


Is this tha library/package?

http://lwp.linpro.no/lwp/

--
Ben M.

----------------
What are Software Patents for?
To protect the small enterprise from bigger companies.

What do Software Patents do?
In its current form, they protect only companies with
big legal departments as they:
a.) Patent everything no matter how general
b.) Sue everybody. Even if the patent can be argued
invalid, small companies can ill-afford the
typical $500k cost of a law-suit (not to mention
years of harassment).

Don't let them take away your right to program
whatever you like. Make a stand on Software Patents
before its too late.

Read about the ongoing battle at http://swpat.ffii.org/
----------------
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com