Solved

username and password login .....

Posted on 2003-12-03
3
470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Six Sigma Control Plans

632 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