3

Sometime back, I tasked a junior to work on designing a quiz application for a college competition. Lo and behold, he had used a POST request for every call to an API and this made the code very buggy and untestable. Here's the conversation that I had:

Me: Dude why is everything a POST request?
Junior: POST is a lot secure right? Nobody would be able to read anything from the request.

FML

Comments
  • 1
    Maybe I'm missing something here, but what exactly is wrong with this? As long as the internet connection is stable it should be fine. And he is right that it is secure.
  • 0
    @LucaScorpion maybe the junior is not using restful properly.
  • 1
    @LucaScorpion I assume that he is using POST even when he is just GET-ing data, like the text of the question.
Add Comment