mkilic has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to write a program that would login datamonitors.com and download some files. I have diffuculties with authentication. Is there any sample code that I can look at to get a head start? The code needs to keep the connection alive or login for each try so that I can browse throught the site. Can some one give me a hint on this?

Thanks

Mak

Replies are listed 'Best First'.
Re: Login problem
by stephen (Priest) on May 10, 2001 at 19:32 UTC
    What you need is the LWP module. Check out LWP.

    LWP's documentation includes a cookbook called "lwpcook", which contains the sample code you're looking for. (Look for "Access to Protected Documents".)

    stephen

      Hi, I can not get that code snippet to work. Do you know any other way to do it? Or can I have a working sample code if you have any?

      Thanks,
      Mustafa