I need to post xml to a webpage to get a result. But I'm not allowed to enter the XML POST data, because it contains < and >.

Is there a way around this?


Article Comments

Hello,

could you please drop a few more details? Are you referring to HTTP Sensors in PRTG? To the PRTG API?

Best Regards.


Nov, 2010 - Permalink

Hi, does it work, when you encode the special characters as &lt; for < and &gt; for >?


Nov, 2010 - Permalink

I'll try to supply more info, the sensor I'm trying to configure is a HTTP sensor in PRTG.

I'm trying to access a webpage called http:/some.link/xmllink.asp I need to either POST or GET xml data to it in this form. In simplified form:

XMLDATA=<?xml version="1.0"?><OadBookingRequest>Data</OadBookingRequest>

I've tried using &lt; and &gt;. I've also tried to use %3c and %3e.

The error message I get is:

The validation of the data provided failed due to the following:
Postdata: Character sequences ('&lt;...&gt;') which can potentially form a tag are not allowed here

Is there perhaps some DontBlamePRTG registry setting, so I can use < and > in my Postdata?


Nov, 2010 - Permalink

To answer my own question. I also escaped all spaces.. so %3c, %3e en %20 for the spaces. And that worked with the GET.-


Nov, 2010 - Permalink