List Info

Thread: authenticaiton required




authenticaiton required
user name
2007-01-31 08:09:06
Hi All


$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.

Regards
Abdullah Jan




 
____________________________________________________________
________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
ht
tp://smallbusiness.yahoo.com/domains/?p=BESTDEAL

[Non-text portions of this message have been removed]



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/
 

Re: authenticaiton required
user name
2007-01-31 10:02:01
From: Mirza Abdullah Jan <jan576pkyahoo.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
===== JendaKrynicky.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/
 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )