Forum Discussion

Deepak_Kumar2's avatar
Deepak_Kumar2
Icon for Nimbostratus rankNimbostratus
Mar 15, 2022

HTTPS monitor with headers Content-type.

Hi All,

I am trying to create a new HTTPS health Monitor for pool which contains Cisco ISE.

For testing I am using below cURL string, and it is given below output:

curl -u username -k --location --request PUT ‘’https://ISE-Server/Url'  --header 'Accept: application/snd.com.cisco.ise.identity.guestuser.2.0+xml' --header 'Content-Type: application/xml'

Curl Output:

<?xml version="1.0" encoding="utf-8" standalone="yes"?><ns3:ersResponse operation="PUT-suspendByName-guestuser" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns3="sss.ise.cisco.com"><link rel="related" href=" https://ISE-Server/Url" type="application/xml"/><messages><message type="ERROR" code="CRUD operation exception"><title>Suspend request for  GuestUser By name (username) failed due to  The GuestUser name (username), not found.</title></message></messages></ns3:ersResponse>

 

This is the desired output as per Engineer.

Now I am trying to convert this to HTTPs monitor as per below:

Send String:

PUT /Url HTTP/1.1\r\nHost: <host>\r\nContent-Type: application/xml\r\nConnection: Close\r\n\r\n

 

Receiver String:

<title>Suspend request for  GuestUser By name (apitest) failed due to  The GuestUser name (apitest), not found.</title>

But Pool member is showing Down.

Can someone pls support me to create a proper send and receive string for this. It seems I am not properly using Content-Type & Accept header in receive string.