Answered by:
What is the default Http method?

Question
-
User-1682137340 posted
HI
What is the default Http method?
IF GET is default then,
when i did't specify other methods in program then is get default to perform remaining all method's actions like requesting page, posting data, put , head ,delete ,trace method's actions ?
thanks in advance
Sunday, August 24, 2014 10:19 AM
Answers
-
User-760709272 posted
There is no "default method", it would depend what you are using to make a request. A browser might select a default method for a <form> if you don't give one, however a WebRequest class might default to something different, who knows? A general rule is to never rely on defaults. If you want to know what a specific default is, then consult the documentation for the objects you are using to see what the defaults are, or use a tool like fiddler to work it out.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, August 24, 2014 10:32 AM -
User-1818759697 posted
Hi,
The set of common methods for HTTP/1.1 is defined, such as, Get, Post, Put, Delete etc.. There is no the default http method, and you need to specify the corresponding http method when you execute different operations.
For example, in web api, you define different actions and you could invoke them by specify the request type in your application. For detailed information, you could refer to:
http://www.webdevelopmenthelp.net/2014/01/crud-operations-using-webapi-part2.html
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
http://dotnetmentors.com/web-api/rest-based-crud-operations-with-asp-net-web-api.aspx
Regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 26, 2014 11:34 PM
All replies
-
User-760709272 posted
There is no "default method", it would depend what you are using to make a request. A browser might select a default method for a <form> if you don't give one, however a WebRequest class might default to something different, who knows? A general rule is to never rely on defaults. If you want to know what a specific default is, then consult the documentation for the objects you are using to see what the defaults are, or use a tool like fiddler to work it out.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, August 24, 2014 10:32 AM -
User-1818759697 posted
Hi,
The set of common methods for HTTP/1.1 is defined, such as, Get, Post, Put, Delete etc.. There is no the default http method, and you need to specify the corresponding http method when you execute different operations.
For example, in web api, you define different actions and you could invoke them by specify the request type in your application. For detailed information, you could refer to:
http://www.webdevelopmenthelp.net/2014/01/crud-operations-using-webapi-part2.html
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
http://dotnetmentors.com/web-api/rest-based-crud-operations-with-asp-net-web-api.aspx
Regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 26, 2014 11:34 PM