My comment was stated inaccurately.  The method attribute was set to "GET" on 
the form element.  It only worked when I set it to "get".
I learned XHTML (strict), which requires elements and attributes to be 
lowercase (which, for some reason, I violated when I set the attribute to 
"GET").  I forgot that that requirement was lifted with HTML5.

Your reference is interesting because it seems to imply that the method 
attribute has to be uppercase.  Maybe the browser translates it to uppercase 
before sending it to the server?  But then that doesn't explain why I got two 
different results based on the case of the method attribute.

-----Original Message-----
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Melvyn Sopacua
Sent: Wednesday, May 9, 2018 6:21 PM
To: django-users@googlegroups.com
Subject: Re: Case inconsistency

On woensdag 9 mei 2018 23:00:06 CEST Matthew Pava wrote:
> I came across an interesting issue recently.  I had a form with an 
> action set to "GET".  The corresponding view was a 
> django-rest-framework view that was just supposed to allow for GET 
> requests.  However, I couldn't get it to work because drf was 
> expecting lower case names, and it turns out that
> HTML5 expects a lowercase action set to "get".

HTML is not your reference (and case insensitive to boot). HTML does not make 
requests, it just specifies how responses are rendered. HTTP makes requests:
https://tools.ietf.org/html/rfc2616#page-36
--
Melvyn Sopacua

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5432858.BvN9p53GFH%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/71535c90594c49719fe1f70376d7e7a0%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to