Vijjendra
Vijjendra

Reputation: 25233

What is the verb="*"?

Can any one tell me , when we register the custom HTTPHander in web.config like below

 <add verb="*" path="SampleHandler.new" 
    type="SampleHandler, SampleHandlerAssembly" />

in this What is the meaning of the verb="*" and what is the it's use?

Upvotes: 13

Views: 5130

Answers (2)

nbushnell
nbushnell

Reputation: 1732

It means all HTTP verbs: GET, POST, HEAD, PUT and DELETE

The verb list can be either a comma-separated list of HTTP verbs (for example, "GET, PUT, POST") or a start-script mapping (for example, the wildcard character * [an asterisk]).

http://msdn.microsoft.com/en-us/library/7d6sws33%28v=vs.71%29.aspx

Upvotes: 7

Jakub Konecki
Jakub Konecki

Reputation: 46008

It means that the handler will execute for all verbs - ie. GET, PUT, etc.

HTTP Verbs: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Default configuration: http://msdn.microsoft.com/en-us/library/bya7fh0a.aspx

It can be used to specify that, for example, a certain handler should only process POSTs not GETs.

Upvotes: 6

Related Questions