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
Solved

username and password login .....

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 101
Trying to use two loops in a perl script but not getting results need. 10 93
Move Function in Perl Script 2 72
Insert Text into odbc.ini file 15 67
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…

840 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