Pergunta

can v download media contents and save it in a destination folder without using LWP module??

Foi útil?

Solução 2

Without knowing why you want to avoid LWP it is hard to help.

Coding an HTTP client is far from simple and a module of some sort or an external utility is pretty much essential.

I suggest HTTP::Client, HTTP::Lite or HTTP::Tiny, which are all stand-alone HTTP client modules that don't depend on LWP.

Outras dicas

In Perl, there are many ways of doing that. Neil Bowers made an excellent survey CPAN modules for making HTTP requests; use it as a reference for your needs. In a nutshell:

HTTP flowchart
(source: neilb.org)

You could use commandline tools in linux to do this.

Check curl and wget documentation.

On windows you could install cygwin and use linux tools.

Regards,

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top