11-13-06 02:01 PM
mrbowes@gmail.com wrote:
> man wget and man curl return "No manual entry for xxx" so I don't
> think I have those modules installed.
>
> Is there any other way? Or should I look at installing these modules?
It sounds like you're in an environment where administrative restraints
may be more of a difficulty than technical ones. Which is unfortunate,
because it often makes things into more work than necessary. (And wget
and curl are hardly exotic software, incidentally.)
One other possibility is to do what you want to do with perl. PERL is
often installed on systems as a standard thing, so it might be there.
With any luck, it is, and libwww-perl is also installed. If so, it
should be just a matter of using the HTTP::Request class. There is
some documentation at http://search.cpan.org/~gaas/libwww-perl-5.805/ .
You can test if you have HTTP::Request by doing this:
perl -M'HTTP::Request' -e 1
Another possibility, if you don't have it and can't get it installed,
but you still have perl, is to do it directly in perl. "perldoc perlipc"
should have some documentation about how to use Perl's socket interface.
Doubtless similar scripts could be whipped up fairly easily in other
languages, like Python or Ruby, for example.
- Logan
[ Post a follow-up to this message ]
|