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.
Login to Web Page Using Captcha
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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:
"HTTP POST request" parameter of URL request test should look like:
login=TestLogin&psw=TestPassword&captchastring=YourFixedCaptchaString
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>
login=TestLogin&psw=TestPassword&captchastring=YourFixedCaptchaString
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.
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.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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.
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.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: