Solved

username and password login .....

Posted on 2003-12-03
3
464 Views
Last Modified: 2012-06-27
Hi,

    I am a very beginner in the programming. So I am not quite sure whether I am in the correct category for the following question ....
My question is : How do I write a script which can automatically login in to some website with given username and password ? and then copy some text from the website to a file ?   Is Perl the best way to do it ? or there are some other languages would do better ?

Thanks.

meow.
0
Comment
Question by:meow00
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
jmcg earned 200 total points
ID: 9872720
Perl is certainly one suitable way to do this. We recently discussed a very similar question here:

http:Q_20657417.html

There are a number of different implementations of password protection for websites. You need a different style of script for sites that use Basic authentication vs sites that have you login via  form vs sites that use https, etc.
0
 
LVL 1

Author Comment

by:meow00
ID: 9875161
Thanks very much ! I definitely need sometime to digest the codes.....
Just have one more question :
is there any book or website having more information about the LWP and HTTP libraries ? I couldn't find them in some basic Perl tutorial. Thanks !

meow.
0
 
LVL 20

Expert Comment

by:jmcg
ID: 9886866
When you install LWP there's a POD file called "lwpcook" included. It's a cookbook with a goodly number of simple examples.

Web Client Programming with Perl, by Clinton Wong
http://www.oreilly.com/catalog/webclient/

helped bootstrap me into using LWP. It's out of print, but you can still look at all the examples via the above URL.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now