HTTP Test issue
HTTP Test issue
hi folks,
I have problem with configuring HTTP test in Hostmonitor. I am trying to monitor http page, to access this page I have to log in using username/password in a login http page (my page that I want to monitor comes after this http login page). I added in the Authorization section the username and password but unfortunately I can’t monitor my page.
Do you have any ideas??
thx
Rami
I have problem with configuring HTTP test in Hostmonitor. I am trying to monitor http page, to access this page I have to log in using username/password in a login http page (my page that I want to monitor comes after this http login page). I added in the Authorization section the username and password but unfortunately I can’t monitor my page.
Do you have any ideas??
thx
Rami
When you setup HTTP test, HostMonitor allows you to specify user name and password for standard HTTP authentication.
As I understand your server does not use standard authentication, instead you have implemented some custom authentication scheme. Am I right?
In such case there is no standard method to go thru your protection. Each web server administrator uses its own methods, scripts, login pages, fields, etc.
You should check what script (URL) is used for authentication, what fields are used, what request method should be used (POST or GET) and so on. You can get such information by checking source codes of web page that prompts for password.
- You should find tag <Form>. "Action" attribute of this tag provides URL to script that processes user authentication. You may use path to this script in URL property of the test.
- Then you should find all <input> tags within this form and find out witch fields are used for username and password input.
- Then you should check how authentication script works, you need to know what request method should be used by HostMonitor: GET or POST.
If your authentication script uses GET method, you may add string like ?username=your_username&password=your_password into URL (where "username" and "password" name of the input fields from your authentication form). If your script uses POST method, you should provide username and password using "Post data" property of the test.
Probably you will need to enable "follow redirect" and "Allow per-session cookies" options as well.
If you are not sure how your authentication works, its the best to ask administrator of your web server. He must know for sure.
Regards
Alex
As I understand your server does not use standard authentication, instead you have implemented some custom authentication scheme. Am I right?
In such case there is no standard method to go thru your protection. Each web server administrator uses its own methods, scripts, login pages, fields, etc.
You should check what script (URL) is used for authentication, what fields are used, what request method should be used (POST or GET) and so on. You can get such information by checking source codes of web page that prompts for password.
- You should find tag <Form>. "Action" attribute of this tag provides URL to script that processes user authentication. You may use path to this script in URL property of the test.
- Then you should find all <input> tags within this form and find out witch fields are used for username and password input.
- Then you should check how authentication script works, you need to know what request method should be used by HostMonitor: GET or POST.
If your authentication script uses GET method, you may add string like ?username=your_username&password=your_password into URL (where "username" and "password" name of the input fields from your authentication form). If your script uses POST method, you should provide username and password using "Post data" property of the test.
Probably you will need to enable "follow redirect" and "Allow per-session cookies" options as well.
If you are not sure how your authentication works, its the best to ask administrator of your web server. He must know for sure.
Regards
Alex
I mean to monitor HTTP based mail system using HTTP test, forget about this issue now.
going back to my case, our website developer informed me it is Post method and I put in the Post data username:myusername&password:mypasswd and it works fine
the new issue now, I want to monitor a page that is displayed from a http link inside my 1st page that i managed to monitor above, my developer told me that the authentication method for this new page is GET, do you have an idea how can I now monitor this new page?? I think I have to open a standalone test for it?? how can i supply the user and password for GET?? as we know the session ID is used in the cokies to maintain the session security in this case.
please advise
thanks
Rami
going back to my case, our website developer informed me it is Post method and I put in the Post data username:myusername&password:mypasswd and it works fine

the new issue now, I want to monitor a page that is displayed from a http link inside my 1st page that i managed to monitor above, my developer told me that the authentication method for this new page is GET, do you have an idea how can I now monitor this new page?? I think I have to open a standalone test for it?? how can i supply the user and password for GET?? as we know the session ID is used in the cokies to maintain the session security in this case.
please advise
thanks
Rami
So you need to perform 2 authentications in a row? Store cookies ussued after 1st authentication, get some link from retrieved web page, perform another request using this link and stored cookie? Impossible.
E.g. www.myserver.com/login.cgi?username=you ... r_password
Note: I don't know what exactly field names are used by your script (may be its not "username" and "password").
Regards
Alex
As usually, just add string like ?username=your_username&password=your_password to the URLhow can i supply the user and password for GET??
E.g. www.myserver.com/login.cgi?username=you ... r_password
Note: I don't know what exactly field names are used by your script (may be its not "username" and "password").
Regards
Alex
hi Alex,
fortunately, when I added ?username=your_username&password=your_password to my 2nd link it doesn't work with GET method.
I referred to our website developer and he told me that your method wont work, as I need to do the POST to the 1st page with the username and password and then ensure that the cookie is used to keep the session alive whilst getting other pages in the system. the system expect the subsequent gets must be part of the same script otherwise the session information may be lost.
do you have any ideas how can I Implement this in Host Monitor??
thanks
Rami
fortunately, when I added ?username=your_username&password=your_password to my 2nd link it doesn't work with GET method.
I referred to our website developer and he told me that your method wont work, as I need to do the POST to the 1st page with the username and password and then ensure that the cookie is used to keep the session alive whilst getting other pages in the system. the system expect the subsequent gets must be part of the same script otherwise the session information may be lost.
do you have any ideas how can I Implement this in Host Monitor??
thanks
Rami
I am not sure
Its very hard to create test that will be able to work with any custom scheme. We will need to create special language, you will need to create scripts using this language... Its out of scope of HostMonitor.
Usually basic URL + ODBC test is enough to verify that your web server and database work fine.
Regards
Alex

Usually basic URL + ODBC test is enough to verify that your web server and database work fine.
Regards
Alex