Login to Web Page Using Captcha

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Login to Web Page Using Captcha

Post by jromariz »

Hi,

I need to monitor the login to a certain web page with Host Monitor. The problem is that this page, besides username and a password asks for a captcha string. I do have a special string that would always work but I cannot find where should I place this captcha string on the test for it to be able to login.

Any ideas?

Thanks again.


Regards,

Jromariz.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

First of all you should check web page source code.
If captcha string can be passed like simple HTML "Input" parameter of POST/GET "Form" with username and password, then you may use HTTP or URL request test methods with POST/GET data request.
E.g. If web page source code looks like the following:

Code: Select all

<form action="http://test.com/login.php" method="POST">
<input type="text" name="login">
<input type="password" name="psw">
<input type="text" name="captchastring">
<input type="submit">
</form>
"HTTP POST request" parameter of URL request test should look like:
login=TestLogin&psw=TestPassword&captchastring=YourFixedCaptchaString
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi,

Thanks for your fast reply. Here´s part of the page code that, I believe, is related to username, password and captcha.

Would it be to much to ask if you could help me format the poste string?

<label for="txtLogin" id="lblLogin" class="label">Login</label>
<span id="revLogin" class="validator" style="visibility:hidden;">*</span>
<input name="txtLogin" type="text" maxlength="50" id="txtLogin" class="textBox" style="width:160px;" />
<span id="rfvLogin" class="validator" style="visibility:hidden;">*</span>
</li>
<li>
<label for="txtPassword" id="lblPassword" class="label">Senha</label>
<span id="rfvPassword" class="validator" style="visibility:hidden;">*</span>
<input name="txtPassword" type="password" maxlength="20" id="txtPassword" class="textBox" style="width:60px;" />
</li>
<li>
<label for="txtCaptcha" id="lblCaptcha" class="label">Código</label>
<span id="rfvCode" class="validator" style="visibility:hidden;">*</span>

Tahnks a lot.

Jromariz.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

This part of page code contain only two input fields:
1. <input name="txtLogin" type="text" ..... >
2. <input name="txtPassword" type="password" .... >
while you need third input field for captcha string.
Please check whole page code between <form ... > and </form> HTML tags
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Ok I found the missing part. Just one more question: the URL for the test should be the login page or any page after the login, I mean any page that is protected by the login page?

Hope you will understand.

Regards,


Jromariz.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You should use URL, specified in "action" parameter of <form> tag.
E.g. If form tag looks like:
<form action="http://test.com/login.php" method="POST">
URL should looks like:
http://test.com:80/login.php
or
http://test.com/login.php

Please note: action parameter may contain relative address, like action="login.php", however, for URL request test you should specify full URL.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Ok,

Once again thanks a lot for your help!

Regards,

Jromariz.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome :)
Post Reply