help for POST XML-RPC monitor

I configure a Monitor like

POST /RPC2 “/HTTP/1.0\r\nUser-Agent: Apache XML-RPC 1.0\r\nContent-Type: text/xml\r\nHost: localhost:800\r\nContent-Length: 123\r\n\r\nisValidAdress\r\n”

When i execute it via CLI: Please enter content (application/x-www-form-urlencoded) to be POSTed:

When i do the same without " the resulte is: -bash: syntax error near unexpected token `<’

Is anybody can help me to configure this monitoring with good syntaxe.

POST /RPC2 HTTP/1.0 User-Agent: Apache XML-RPC 1.0 bdoc-Session: Host: localhost:800 Content-Type: text/xml Content-Length: 123 isValidAdress

Have you tried escaping the ‘<’ (\<)?

How do you test it via bash?

/Patrik

Hi It’s OK but the receive string isn’t the same between the CURL and the monitoring I can’t detail the command line and return string (it’s considered as spam by devcentral)

The monitoring POST /RPC2 HTTP/1.0\r\nUser-Agent: Apache XML-RPC 1.0\r\nbdoc Session: /\r\nHost: localhost:800\r\nContent-Type: text/xml\r\nContent-Length: 123\r\n\r\nisValidAdress\r\n

and the curl curl -X POST --user-agent “Apache XML-RPC 1.0” --header “Content-Type:text/xml” --header “Content-Length:123” --data “isValidAdress” Regards

Try this one instead?

POST /RPC2 HTTP/1.0\r\nUser-Agent: Apache XML-RPC 1.0\r\nbdoc Session: /\r\nHost: localhost:800\r\nContent-Type: text/xml\r\nContent-Length: 123\r\nisValidAdress\r\n\r\n

You can test the monitors as the F5 sends them by running:

echo -ne [send string] | nc [ip] [port]

/Patrik