1

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);

1 Answers1

0

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?

Community
  • 1
  • 1
P.S.
  • 15,970
  • 14
  • 62
  • 86