HTTPRequest with custom methods ?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

HTTPRequest with custom methods ?

Post by Djek » Wed Sep 03, 2014 2:09 pm

hi all,
this question is about the HTTPRequest .
in use to request for an action on a PBX (http based)
besides the GET and POST methods, it requires a DELETE method.
I have never heard of it; here is the description:

/apis/pbx/call/<unique_id> – hangup a call
The request URI is the one returned in the Location header of the originate request or
constructed from the unique_id returned in the originate request or in a call event.
· Request method: DELETE
· Parameters: none
When the action is performed '200' response is returned with the following properties:
· status: success when hangup succeed


Ok, the question is; are there custom methods available with HTTPRequest, and if how?
Of course i ve tried to change the GET into DELETE, but no go.
I know its a strange question, because i can not find anywhere what the difference would be.
By the way; the GET and POST requests are working ok with this PBX , only if i knew how to terminate a call...
:-)
thanks in advance
kind regards
Djek

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: HTTPRequest with custom methods ?

Post by Marcus Tettmar » Wed Sep 03, 2014 2:31 pm

To be honest I didn't know such a method existed. HTTPRequest does not support it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: HTTPRequest with custom methods ?

Post by Djek » Thu Sep 04, 2014 7:35 am

Thanks for your reply, Marcus,

I found that there are a few more methods; see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
such as OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE and CONNECT.
I did not know that either.....we are never to old to learn...
Guess that many of them are obsolete, and arenot used any more,
But as for my "problem" there are more ways leading to Rome, and i figured out that a transfer to a not existing number also dropped the call. so i use that in stead of the function of Hang up.
:-)

kind regards,
Djek

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts