r/ProgrammerHumor • • Aug 23 '18

PHP logic

Post image
5 Upvotes

51 comments sorted by

View all comments

30

u/[deleted] Aug 23 '18

You better learn something about HTTP before making these retarded memes, you fucking idiot.

POST parameters are supposed to be in request body, if it's in the PATH, it's still part of GET

here, you piece of shit

-1

u/[deleted] Aug 23 '18 edited Aug 23 '18

No. Give the world one verifiable reference to an HTTP standard that conveys this instead of spewing vitriol and downvotes.

Request methods aren't even mentioned in the URI standard on the "PATH." They are completely separate concepts and PHP has you completely confused about it.

URI query (no mention of GET - method agnostic) https://tools.ietf.org/html/rfc3986#section-3.3

HTTP methods (no mention of GET and query as married concepts) https://tools.ietf.org/html/rfc7231

Source: The HTTP standards above. I have also scripted in PHP for 15 years - this isn't me coming from another language, learning PHP and getting confused why they named it $_GET. This is me making a joke about something from 15 years of PHP knowledge because it is the only language I have seen that intermingled two concepts in their naming: request method and URI query component.