I am trying to monitor an https web services site that requires some paramets and values to complete the monitoring.
An example is:
url:
https://my.website.com/my/service.svd/info
Parameter: number Value: 7011111111
Parameter: next_page Value: /300
I'm a total newbie and I've looked at the webinject site and cannot find anything that looks like it will fit my bill. Any help will be greatly appreciated.
Thanks,
kz
WEB Transaction
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: WEB Transaction
There are two possibilities for how those parameters could be passed and received. The first is an HTTP GET and the second is an HTTP POST. Which one you require depends on what the my/service.svd/info page expects. If it is GET it's easy - you just put it in the URL, eg
For POST data, see pages 4 and 5 of the document on http://library.nagios.com/library/produ ... -nagios-xi.
Code: Select all
https://my.website.com/my/service.svd/info?number=7011111111&next_page=/300
-
- Posts: 4
- Joined: Fri Jan 29, 2010 7:49 pm
Re: WEB Transaction
Thanks! Unfortunately it's a post. and this this doesn't seem to be correct.
WebInject CRITICAL - Test case number 1 failed
Any other suggestions?
<testcases repeat="1">
<case
id="1"
url="//https://pluto.snoopy.com"
/>
<case
id="2"
method="post"
url="https://pluto.snoopy.com/test/service.svc/GetInfo"
verifypositive="number=6103692020"
verifynextpositve="next_page=/300"
/>
</testcases>
WebInject CRITICAL - Test case number 1 failed
Any other suggestions?
<testcases repeat="1">
<case
id="1"
url="//https://pluto.snoopy.com"
/>
<case
id="2"
method="post"
url="https://pluto.snoopy.com/test/service.svc/GetInfo"
verifypositive="number=6103692020"
verifynextpositve="next_page=/300"
/>
</testcases>
Re: WEB Transaction
Bear with me as I'm not terribly familiar with the Web transaction wizard, but is your your url correct?
-
- Posts: 4
- Joined: Fri Jan 29, 2010 7:49 pm
Re: WEB Transaction
sorry, that was a typo.
<testcases repeat="1">
<case
id="1"
url="https://pluto.xxxx.com/rest/xxxx.svc/GetMemberInfo"
method="post"
posttype="text/xml"
verifypositve="?number=xxxxxxxxxxx"
verifynextpostive="next_page=/300"
<testcases repeat="1">
<case
id="1"
url="https://pluto.xxxx.com/rest/xxxx.svc/GetMemberInfo"
method="post"
posttype="text/xml"
verifypositve="?number=xxxxxxxxxxx"
verifynextpostive="next_page=/300"
Re: WEB Transaction
I don't think the wizard supportsYou may have to resort to using postbody that is not a file as is with this posttype.
You could still use this is you planted the files on the server yourself. You would then just set postbody appropriately for where you uploaded the file.
Code: Select all
posttype="text/xml"
You could still use this is you planted the files on the server yourself. You would then just set postbody appropriately for where you uploaded the file.
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: WEB Transaction
First, be careful of typos - "verifypositive" and "verifynextpositive" should have three Is.
Second, it's possible that the slash before the 300 needs to be escaped, a la my note of
Second, it's possible that the slash before the 300 needs to be escaped, a la my note of
Note that certain special characters need to be escaped. For instance, the < should be replaced with \x3C so as not to interfere with the XML, and within POST data URL escapes are used, so for instance @ becomes %40.