Community Feedback > Bug Reports

REST API - 405 Error on POST


I've been trying to utilize the REST API using the POST syntax specified in the documentation.  I've been building up a test request in Fiddler but I receive an HTTP 405 response whenever I utilize POST.  I've been using GET requests successfully for quite some time but have been unable to send complex script arguments (presumably because of URL encoding issues).

Any ideas?

Believe I finally have this figured out.

First off, it appears Elve is expecting an HTTP PUT (as apposed to a POST as specified in the documentation).

Additionally, the content-type in the request header should be:

Content-Type: text/xml

and the request body need to be surrounded by xml tags as follows:

<string xmlns="">{Elve Command(s) Here}</string>

awesome you figured this out.  #hacker :)

Sent from my SCH-I545 using Tapatalk


[0] Message Index

Go to full version