LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   execute a webtest with basic http authentication using perl's http::webtest (https://www.linuxquestions.org/questions/programming-9/execute-a-webtest-with-basic-http-authentication-using-perls-http-webtest-717127/)

mariogarcia 04-06-2009 05:00 AM

execute a webtest with basic http authentication using perl's http::webtest
 
hello
i would like to execute webtest via nagios in a webpage that uses http authentication: it's a pop-up that appears when trying to access a web. I set the authentication in httpd.conf

i am using the perl module http::webtest but i can't seem to find out how i can test the page with the authentication and all.

thank you in advance for your help.
kind regards

Mario G.

mariogarcia 04-07-2009 02:05 AM

hello
apparently the solution, work around is to put the username and password in the url to check like this: http://username:password@host.com. this way wt can webtest a page which uses weak http authentication.

hope it can help somebody.


All times are GMT -5. The time now is 08:49 AM.