[ale] Opening a webpage with a password?
Armsby John-G16665
John.Armsby at motorola.com
Fri Jun 24 11:37:49 EDT 2005
Perl can do it. If you are interested, I can send you some examples.
John
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Anonymous Coward
Sent: Friday, June 10, 2005 12:04 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Opening a webpage with a password?
Hi,
--- "Robert L. Harris" <Robert.L.Harris at rdlg.net>
wrote:
> I'm messing with automating a website login. I'm trying to connect
> to a site that requires a Login/Password form when I connect using
> firefox.
> I tried using
> "http://user@pass:site.com/internalpage.php" but firefox just says
> that the site doesn't require auth then gives me the original page
> with a form. Anyone have a suggestion on how to automate this? I
> have to load the page regularly but the main page has too many
> freaking graphics/flash, etc on it.
It sounds like this is a regular web form with the credentials being sent over as either a GET or a POST request.
If so, you will need to find the value of the action and the method attributes of the form.
Your script needs to make either a GET or a POST request (depending on method) to the url specified in the action attribute (after adjusting for a relative path if any)
If you plan to do this via a browser by typing a URL ... the server side processing element needs to accept a GET request (which is unusual for an auth form
handler)
If you just need some tool to do this .. I have found Microsoft Fiddler very useful to construct custom http packets (only http:// urls. No support for https:// ).
This is a free download.
Hope that helps.
Thanks,
Anonymous Coward
__________________________________
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list