2

I am working on a web api and I am curios about the HTTP SEARCH verb and how you should use it.

My first approach was, well you could use it surely for a search. But asp.net WebApi doesn't support the SEARCH verb.

My question is basically, should I use SEARCH or is it not important?

PS: I found the SEARCH verb in fiddler2 from telerik.

2 Answers 2

5

The HTTP protocol is defined by RFC documents. RFC2616 defines HTTP/1.1 the current release.

SEARCH is not documented as a verb in this document.

4

AFAIK the SEARCH method is only a proposal and should not be used. Use GET instead.

3
  • At the moment I am using GET, but I like the idea to bring for every common situation a verb. Commented Mar 21, 2014 at 10:56
  • @Knerd The problem is that most HTTP clients will not support the SEARCH method which kind of defeats the motivation of providing an API. Commented Mar 21, 2014 at 12:58
  • You are right. Hopefully it becomes a part of HTTP :) Commented Mar 21, 2014 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.