Re: pm for getting the content of a URL.
- From: Jenda@xxxxxxxxxxx (Jenda Krynicky)
- Date: Tue, 18 Sep 2007 00:41:45 +0200
From: Patrik Hasibuan <patrikh@xxxxxxxxxxxxxxxxxxxxx>
Dear my friends...
I want to get a content of a URL (like curl does). Which pm can I use?
I'm facing a development restriction that my perl-code is going to be
run on a webhosting company'es server and I do not have libcurl there
so I can not use libcurl and 'curl binding of perl' in this case.
I think pm of 'Socket' can not do that, it is for building a
communication among server and client those two belong to us but not
the server belong to "somebody else"-'es a webserver.
Socket or IO::Socket doesn't care where is the client and where the
server. You can use both to connect to a program that runs on the
same computer, on a computer in the same rack, the same building or
halfway across the world.
In either case these modules are too low-level, you'd better use LWP.
Either LWP::Simple or LWP::UserAgent, depends on your needs ... if
you need more detailed control, use the LWP::Agent.
Jenda
===== Jenda@xxxxxxxxxxx === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
.
- Follow-Ups:
- Re: pm for getting the content of a URL.
- From: Patrik Hasibuan
- Re: pm for getting the content of a URL.
- References:
- pm for getting the content of a URL.
- From: Patrik Hasibuan
- pm for getting the content of a URL.
- Prev by Date: Re: parsing csv-file for inserting in database
- Next by Date: Re: Using Perl Win 32 AS 5.8.x - Anyway to find the File Create Date/Time
- Previous by thread: Re: pm for getting the content of a URL.
- Next by thread: Re: pm for getting the content of a URL.
- Index(es):
Relevant Pages
|
|