From: Mirza Abdullah Jan <jan576pk yahoo.com>
> $URL = "http://--------------
---";
>
> I am using $abc = get($URL) funciton to obtain
data from a
> website. Now the website is password protected , I
have also the user
> name and password . How I can authenticate the website
through
> username and password and obtained data from specific
site? Through
> browser I am able to obtained data.
If you get a popup login dialog when you navigate to the
page you may
try to use
$URL = "http://username:password
www...";
if you need to fill in a form on the page and submit it you
will need
to use either WWW::Mechanize or LWP::UserAgent with cookies
to first
log in and then download the data.
Jenda
===== Jenda Krynicky.cz === http://Jenda.Krynicky.cz
=====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|