Codecore Technologies - Elve

Community Feedback => Bug Reports => Topic started by: iolaus on January 10, 2015, 12:34:04 pm

Title: REST API - 405 Error on POST
Post by: iolaus on January 10, 2015, 12:34:04 pm
I've been trying to utilize the REST API using the POST syntax specified in the documentation (http://www.codecoretechnologies.com/content/REST%20Service.ashx#Run_Script_POST_10).  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?
Title: Re: REST API - 405 Error on POST
Post by: iolaus on January 16, 2015, 10:27:53 pm
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>
Title: Re: REST API - 405 Error on POST
Post by: iostream212 on January 17, 2015, 08:13:31 pm
awesome you figured this out.  #hacker :)

Sent from my SCH-I545 using Tapatalk

Title: REST API 405 Error on
Post by: Annaleelooms on April 19, 2017, 09:19:53 am
It isn't those commands it appears to be random,I have reverted to previous version.

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