[Reconnoiter-users] adding checks with the rest interface
thom at clearairturbulence.org
Mon Mar 28 12:48:35 EDT 2011
Right; that was the problem with cURL.
I was actually trying to figure out why I was getting nothing back from the
REST interface while I was writing https://github.com/thommay/hobelar - but
that was actually because I wasn't passing one of the required attributes.
Once I did that everything was happy.
On Fri, Mar 25, 2011 at 20:08, Theo Schlossnagle <jesus at omniti.com> wrote:
> The "xml parse error" only happens with libxml2 fails to parse the input.
> I believe (speculating here) that -d treats your input as POST data...
> so it gets encoded.
> What you need to do it script it (in a libcurl accessibly language) or
> put the xml in a file and use -T with your -X PUT.
> On Fri, Mar 25, 2011 at 2:17 PM, Thom May <thom at clearairturbulence.org> wrote:
>> I'm trying to add checks via the rest interface, but I can't seem to
>> make it work, and I can't find any logging for the rest interface
>> either. (I'll admit I've not delved into the source, nor have I got to
>> stracing noit).
>> Trying with curl:
>> curl -k -E stratcon.crt --key stratcon.key -H "Accept: text/xml" -d
>> "<?xml version="1.0"
>> -X PUT https://my.server:43191/checks/set/eu-west-1b/web/E98E865B-0946-4BB6-81E1-9E259FC14425
>> I simply get the response:
>> <?xml version="1.0" encoding="utf8"?>
>> <error>xml parse error</error>
>> as far as I can tell, that xml is valid.
>> Any clues greatly appreciated!
>> Reconnoiter-users mailing list
>> Reconnoiter-users at lists.omniti.com
> Theo Schlossnagle
More information about the Reconnoiter-users