Forum Discussion

Jinshu's avatar
Jinshu
Icon for Cirrus rankCirrus
Nov 30, 2015

Create a custom monitor-Reading header

Hi all,

I want to create a custom monitor usign below conditions. Can we create a monitor to read the header fleld WWW-Authenticate and respond??

Can somebody help please..

curl -v  http://myserver.com:8080/payments/PaymentGateway?WSDL

* About to connect() to myserver.com port 8080 (0)
*   Trying 10.x.x.x... connected
* Connected to myserver.com (10.x.x.x) port 8080 (0)
> GET /payments/PaymentGateway?WSDL HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1l zlib/1.2.3 libidn/0.6.5
> Host: myserver.com:8080
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
< Pragma: No-cache
< Cache-Control: no-cache
< Expires: Thu, 01 Jan 1970 01:00:00 GMT
< WWW-Authenticate: Basic realm="Test Realm"
< Content-Type: text/html;charset=utf-8
< Content-Length: 958
< Date: Mon, 30 Nov 2015 17:54:57 GMT
<
* Connection 0 to host myserver.com left intact
* Closing connection 0