Re: pm for getting the content of a URL.



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

.



Relevant Pages

  • pm for getting the content of a URL.
    ... 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. ...
    (perl.beginners)
  • Re: FTPS - How to connect with Ruby?
    ... after a lot of googling - connecting to a FTPS server (FTP AUTH TLS/ ... I found some curl library in prealfa state that could possibly help ... sftp is a different protocol than FTPS and that module ... the curl command line client. ...
    (comp.lang.ruby)
  • Re: FTPS - How to connect with Ruby?
    ... after a lot of googling - connecting to a FTPS server (FTP AUTH TLS/ ... I found some curl library in prealfa state that could possibly help ... sftp is a different protocol than FTPS and that module ... the curl command line client. ...
    (comp.lang.ruby)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)