Community Feedback > Bug Reports

REST API - 405 Error on POST

(1/1)

iolaus:
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?

iolaus:
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="http://schemas.microsoft.com/2003/10/Serialization/">{Elve Command(s) Here}</string>

iostream212:
awesome you figured this out.  #hacker :)

Sent from my SCH-I545 using Tapatalk

Annaleelooms:
It isn't those commands it appears to be random,I have reverted to previous version.

- кстати (немного не по теме) сегодня наткнулась на хороший сайт, который возвращает часть денег от покупок в интернете!
Всем рекомендую http://epngo.bz/cashback_index/130rx1

Navigation

[0] Message Index

Go to full version