Click here to Skip to main content
15,181,010 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore1-Sep-20 7:35
mveF-ES Sitecore1-Sep-20 7:35 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 8:10
professionalKevin Marois1-Sep-20 8:10 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore1-Sep-20 8:25
mveF-ES Sitecore1-Sep-20 8:25 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 11:23
professionalKevin Marois1-Sep-20 11:23 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore1-Sep-20 11:33
mveF-ES Sitecore1-Sep-20 11:33 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 12:09
professionalKevin Marois1-Sep-20 12:09 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 1:37
mveF-ES Sitecore2-Sep-20 1:37 
GeneralRe: Simple Question on Http Verbs Pin
DerekT-P1-Sep-20 12:12
professionalDerekT-P1-Sep-20 12:12 
It won't fail because he's suggesting calling that with HttpGet as the verb. Syntactically it's correct, but is not good practice.

I guess part of the answer is that historically, the HTTP verb played a more important part. Languages / frameworks were less flexible (or stricter?). There remain some practicalities - if you want to upload a 50Mb file, you don't want to use HttpGet because that would require the payload to be in the URL, and Http doesn't support URLs of that length. Your webserver may handle different verbs very differently, but where we're using IIS we can have ASP.Net handle different verbs - or ignore certain verbs - just how we want. For example, by default, IIS won't let you invoke a .ASMX webservice via HttpGet - but you can make a trivial change in web.config to allow it.

From RFC2616[^], part of the HTTP1.1 definition:
Quote:
In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered "safe". This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested.
Interestingly, the implication is that the end user is aware of the HTTP verbs being used in an interaction - again, a throwback to a time when internet use was the preserve of techs working at protocol level.

In short, then, the answer to the original question is simply: it's convention.
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 1:34
mveF-ES Sitecore2-Sep-20 1:34 
GeneralRe: Simple Question on Http Verbs Pin
DerekT-P2-Sep-20 4:03
professionalDerekT-P2-Sep-20 4:03 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 4:13
mveF-ES Sitecore2-Sep-20 4:13 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 4:12
mveF-ES Sitecore2-Sep-20 4:12 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois2-Sep-20 7:15
professionalKevin Marois2-Sep-20 7:15 
QuestionImage validation Pin
Member 1492048222-Aug-20 10:01
MemberMember 1492048222-Aug-20 10:01 
QuestionHi, can someone please help me with a task that I am struggling with. Pin
Member 1490081928-Jul-20 2:35
MemberMember 1490081928-Jul-20 2:35 
AnswerRe: Hi, can someone please help me with a task that I am struggling with. Pin
W Balboos, GHB1-Aug-20 12:05
mveW Balboos, GHB1-Aug-20 12:05 
GeneralRe: Hi, can someone please help me with a task that I am struggling with. Pin
Sarbjit Grewal3-Sep-20 19:32
professionalSarbjit Grewal3-Sep-20 19:32 
GeneralRe: Hi, can someone please help me with a task that I am struggling with. Pin
Mycroft Holmes4-Sep-20 13:20
professionalMycroft Holmes4-Sep-20 13:20 
AnswerRe: Hi, can someone please help me with a task that I am struggling with. Pin
Richard MacCutchan1-Aug-20 21:59
mveRichard MacCutchan1-Aug-20 21:59 
QuestionCan i use mailto for this? Pin
kingu39921-Jul-20 6:15
Memberkingu39921-Jul-20 6:15 
AnswerRe: Can i use mailto for this? Pin
Afzaal Ahmad Zeeshan1-Sep-20 10:10
mveAfzaal Ahmad Zeeshan1-Sep-20 10:10 
QuestionHow can I submit with 1 button and 1 form with 2 actions? Pin
amitb221-Jul-20 0:06
Memberamitb221-Jul-20 0:06 
AnswerRe: How can I submit with 1 button and 1 form with 2 actions? Pin
W Balboos, GHB30-Jul-20 8:06
mveW Balboos, GHB30-Jul-20 8:06 
QuestionAsp.Net Core Web API Pin
Kevin Marois15-Jul-20 12:43
professionalKevin Marois15-Jul-20 12:43 
AnswerRe: Asp.Net Core Web API Pin
Richard Deeming16-Jul-20 0:29
mveRichard Deeming16-Jul-20 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.