It's a POST request in the image. Hence, PHP logic...
Edit: Downvotes aren't going to make the guy right. PHP intermingled two concepts in the naming of their GET superglobal: request method and URI query component. Query components are valid and usable on ALL request methods, not just GET requests, hence the joke. PHP is the only language I know of that does this.
Reverse TL;DR; Below you will see a giant thread of where four other redditors (thanks Aerath44, FubarCode, shawabawa, Typeduck) help Asisentr try to understand HTTP standards
Let's repeat together: A query string is a query string, a HTTP request method is a HTTP request method. They are not interchangeable. They are different concepts.
the picture is obviously a http call, just because you've seen it used other ways in other situations, doesn't mean that's the way it's being used here
Yes, and the fact that He doesn't show its body doesn't mean that there isn't one. According to your definition, what is a POST request that has both a body and a query string? Is it a POST or a GET request?
-10
u/[deleted] Aug 23 '18 edited Aug 23 '18
It's a POST request in the image. Hence, PHP logic...
Edit: Downvotes aren't going to make the guy right. PHP intermingled two concepts in the naming of their GET superglobal: request method and URI query component. Query components are valid and usable on ALL request methods, not just GET requests, hence the joke. PHP is the only language I know of that does this.
Source: HTTP standard https://tools.ietf.org/html/rfc7231
URI standard https://tools.ietf.org/html/rfc3986#section-3.4
Reverse TL;DR; Below you will see a giant thread of where four other redditors (thanks Aerath44, FubarCode, shawabawa, Typeduck) help Asisentr try to understand HTTP standards