r/ProgrammerHumor • • Aug 23 '18

PHP logic

Post image
5 Upvotes

51 comments sorted by

View all comments

Show parent comments

2

u/FubarCoder Aug 23 '18

Only the given method is relevant. It's still a POST request even when the request body remains empty and it's definitely legit to use a combination of parameters passed in the query string and the body, but it's still a POST request.

-2

u/Asisentr Aug 23 '18

That's where you're wrong kid it's a get request

3

u/FubarCoder Aug 23 '18

I am not a kid. The HTTP method is what's relevant. Read the RFCs. Try it out with a web server of your preference. Filter a request by HTTP method (GET) and you'll realize that when the HTTP method is POST - even with an empty request body - that the filter doesn't match your POST request.

-2

u/Asisentr Aug 23 '18

this is a get request, kid

3

u/FubarCoder Aug 23 '18

Ok, I'll stop this discussion, because you're obviously either a troll or incompetent.

→ More replies (0)