Solved

username and password login .....

Posted on 2003-12-03
3
468 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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 …
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…

756 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