Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

username and password login .....

Posted on 2003-12-03
3
Medium Priority
?
471 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 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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

670 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