Forum Discussion
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
3 Replies
Have you tried escaping the '<' (\<)?
How do you test it via bash?
/Patrik
- richard_lyonnel
Nimbostratus
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\nYou can test the monitors as the F5 sends them by running:
echo -ne [send string] | nc [ip] [port]/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com