Can I call any method in XmlHttpRequest not only GET, POST, PUT ?
*More Information: *
I have Controller named equal =
AccountsController
In Controller I have method named equal
Connnect(Account acc)
I want call this method from that controller How ?
For example:
var xhr = new XmlHttpRequest();
xhr.open("CONNECT", "www.any.link/api/Accounts", true);
You can also use HEAD
, DELETE
, OPTIONS
and CONNECT
.
For more information you can visit this page:
http://www.w3schools.com/tags/ref_httpmethods.asp
And maybe you find useful this post:
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.