webinject plugin not working with HTTPS but works HTTP

trevor obba trevor_obba at yahoo.co.uk
Fri May 18 16:06:40 CEST 2007


I can not get https to work but HTTP works fine 
  
 I am using webinject to search for a string, it work fine on HTTP but not on https.  

I have the following perl module installed LWP; HTTP::Request::Common;
HTTP::Cookies; XML::Simple; Time::HiRes 'time','sleep'; Getopt::Long;
Crypt::SSLeay; 
  
 I am running webinject like ./webinject.pl –c config.xml testmysite.xml 
  
 Here is my config.xml 
  
  <testcasefile>testcases.xml</testcasefile> 
 <reporttype>nagios</reporttype> 
  
 Here is my testmysite.xml 
  
 <testcases repeat="1"> 
  
 <case 
     id="1" 
     description1="SAMPLE TEST CASE - main Web page" 
     description2="verify string 'University of Westminster' exists in response" 
     method="get" 
     url="https://www.mysite.com/ipp/U09FUCVS.htm" 
     verifypositive="Fees" 
 /> 
  
 <case 
     id="2" 
     description1="SAMPLE [NEGATIVE] TEST CASE - main Web page" 
     description2="verify string 'bogus string' does not exist in response" 
     method="get" 
     url="https://www.mysite.com/ipp/U09FUCVS.htm" 
     verifynegative="bogus string" 
 /> 
  
  
 </testcases> 
  
  
 The web site answer to both HTTP and https, when you run testcase (testmysite.xml) with HTTP it work fine with the following output  
  WebInject OK - All tests passed successfully in 2.671 seconds |time=2.671;;;0 
  
 However when you run testcase (testmysite.xml) with https it fails with the following output 
 WebInject CRITICAL - Test case number 1 failed |time=0.186;;;0 
  
 When I doing rough? Can you help Please?  How can I diagnosis the problem? My webinject does not seem to work with https, I have Crypt::SSLeay module installed and comment out in webinject.pl 
  
 Thanks in advance. 


	
	
		
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo..com/evt=44106/*http://mail.yahoo.net/uk 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list