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
HTTPRequest with custom methods ?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: HTTPRequest with custom methods ?
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: HTTPRequest with custom methods ?
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
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