can't monitor a web page which need to authorize

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).
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

And what URL do you use for the test?
This one?
http://<server>/<path_to_webpage_with_the_form>/SignInPage.aspx?ru=http%3a%2f%2f10.77.8.205%2fwett%2fDefault.aspx&to=-2&aid=TestSignInPage&ip=10.77.13.38&lou=http%3a%2f%2f10.77.8.205%2fHBWebApp%2fHBPassportService%2fTestPage%2fTestLogOff.aspx

Regards
Alex
Yoorix
Posts: 177
Joined: Wed Dec 14, 2005 8:28 am

Post by Yoorix »

leo1631 wrote: <form name="serverForm" method="post" action="SignInPage.aspx?ru=http%3a%2f%2f10.77.8.205%2fwett%2fDefault.aspx&to=-2&aid=TestSignInPage&ip=10.77.13.38&lou=http%3a%2f%2f10.77.8.205%2fHBWebApp%2fHBPassportService%2fTestPage%2fTestLogOff.aspx" id="serverForm">
<input type="hidden" name="__VIEWSTATE" value="......" />
<input name="SignInControl:_ctl0:clientEnv" id="SignInControl__ctl0_clientEnv" type="hidden" />
<input name="SignInControl:_ctl0:signInName" type="text" value="leo1631" id="SignInControl__ctl0_signInName" class="flatInput" size="32" />
<input name="SignInControl:_ctl0:password" id="SignInControl__ctl0_password" type="password" size="32" class="flatInput" />
<input type="submit" name="SignInControl:_ctl0:SignInButton" value="login" id="SignInControl__ctl0_SignInButton" class="flatButton" style="width:64px;" />
<input id="SignInControl__ctl0_dontSaveUserName" type="checkbox" name="SignInControl:_ctl0:dontSaveUserName" />
-------------------------------------------------------------

As Yoorix told me ,I provide in "Post data" field of HTTP test with this string :
--------------------------------------------------------------------
SignInControl:_ctl0:signInName=leo1631&SignInControl:_ctl0:password=123456
------------------------------------------------------------------------------------
But it does not work, it seems just like do not post the string at all.
Actually... :-)
The last thing I can suggest you is concatenate in post data filed all form fields, including submit button, i.e:
SignInControl:_ctl0:signInName=leo1631&SignInControl:_ctl0:password=123456&SignInControl:_ctl0:SignInButton=login&SignInControl:_ctl0:clientEnv=&SignInControl:_ctl0:dontSaveUserName=yes
And you, perhaps, should add to this line __VIEWSTATE variable, but I'm not sure. You should try it yourself in different ways.
Why do not you try Get method for result string?

Regards,
Yoorix
leo1631
Posts: 55
Joined: Thu Apr 27, 2006 8:51 pm

Post by leo1631 »

KS-Soft wrote:And what URL do you use for the test?
This one?
http://<server>/<path_to_webpage_with_the_form>/SignInPage.aspx?ru=http%3a%2f%2f10.77.8.205%2fwett%2fDefault.aspx&to=-2&aid=TestSignInPage&ip=10.77.13.38&lou=http%3a%2f%2f10.77.8.205%2fHBWebApp%2fHBPassportService%2fTestPage%2fTestLogOff.aspx
Not that one, the URL of the test is like "http://10.77.8.222/appweb/default.aspx", and then redirected to the login page like"http://10.77.8.205/signinpage.aspx?...."
leo1631
Posts: 55
Joined: Thu Apr 27, 2006 8:51 pm

Post by leo1631 »

Yoorix wrote: Why do not you try Get method for result string?
I have tried Get method use URL like "http://10.77.8.222/webapp.aspx?SignInCo ... ord=123456", not work.

Can Get method work if the form in login page uses POST method?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Looks like you are using wrong URL. As you may see the form uses different URL to post data. You should use the same URL in HostMonitor.
If you are not sure how exactly server's script works, you should ask administrator of the web server.

Regards
Alex
Post Reply