I think you pretty much got it - grab the first page, extract the login
form, post it back. Lather, rinse, repeat.
I use curl to grab the pages, rather than links, but the principal is the
same. Curl has bindings for perl, php, and othe languages, as well as a C
library.
Ralph Mitchell
On Wed, Oct 29, 2008 at 6:23 PM, Everett, Vernon <
user-9da1a1882f49@xymon.invalid> wrote:
Hi
In a previous job, we had a similar requirement, and I was unable to find a
way round this problem.
I eventually wrote a custom hobbit script, that used links (a text based
web browser) with a links script to navigate the web page, enter the login
info, and then check the output.
It's a more complex solution than you probably want, but it worked.
If anybody has a better solution, I am all for it.
Regards
Vernon
*From:* Perumal, Santoshbabu [mailto:user-bc15f54a09ea@xymon.invalid]
*Sent:* Thursday, 30 October 2008 12:56 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* [hobbit] website login-help Needed.
HI hobbit gurus,
Is there any way that we can monitor website logins. I know there is a
way if the URL requires authentication we can use
http://USERNAME:user-9c6e10e27f21@xymon.invalid/
If URL does not require authentication (uname and passwd) to get the page.
But after get the page it has SIGN IN boxes which I need to check
periodically by giving username and password. is this possible using hobbit.
Please help here.
Thanks
Santhoshbabu Perumal
Unix system Administrator
System Engineering, GO & I
The Mcgraw-Hill companies
HTS East Windsor, NJ
XXX-XXX-XXXX (Desk)
XXX-XXX-XXXX (work cell)
The information contained in this message is intended only for the
recipient, and may be a confidential attorney-client communication or may
otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended recipient,
please be aware that any dissemination or copying of this communication is
strictly prohibited. If you have received this communication in error,
please immediately notify us by replying to the message and deleting it from
your computer. The McGraw-Hill Companies, Inc. reserves the right, subject
to applicable local law, to monitor and review the content of any electronic
message or information sent to or from McGraw-Hill employee e-mail addresses
without informing the sender or recipient of the message.
NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.