Can any one tell me , when we register the custom HTTPHander in web.config like below
<add verb="*" path="SampleHandler.new"
type="SampleHandler, SampleHandlerAssembly" 开发者_C百科/>
in this What is the meaning of the verb="*" and what is the it's use?
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
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.
精彩评论