News for hackers. Stuff that matters.
Re:Request bodies in GET requests by lhnz on Monday January 31, 2022 @05:47PM (#30155831)
Yeah, your point about needing to own the entire stack in this case makes perfect sense, and to be honest, I didn't qualify what I said well at all at the time. When I left the interview I had that sense of "damn, why did I say something so strange with no explanation of where I'd seen this or argument against it". There could have been a conversation about it, but my response just made the interviewer tick the 'no' box.
Re:Request bodies in GET requests by brianpan on Tuesday February 01, 2022 @02:24AM (#30159567)
Yeah, that's on the interviewer for not asking follow up questions.

I've had plenty of intelligent answers that seemed weird to me before I followed up. Or "wrong" answers because I didn't explain the question well or there were different assumptions. Red flags shouldn't be red flags until you probe and give the candidate a chance to explain (or dig a deeper hole).

Re:Request bodies in GET requests by cema on Monday January 31, 2022 @07:04PM (#30156724)
Well if that's the case then the interview process was not well put together.
Re:Request bodies in GET requests by ranguna on Tuesday February 01, 2022 @02:19AM (#30159543)
Why is that?

I've had a similar interview where I was interviewing and this came up, the interviewee didn't pass but it wasn't because they said GETs could have bodies. That was just one of the reasons, and they would've passed if that was the only "wrong" answer.

If they had explained that you could indeed have a body in a GET request, even if it went against the spec and you'd probably have to modify you existing body parser to comply, I would have accepted the answer as "correct". What matters is if you can explain your answer, not if you can answer yes or no questions.

In the end they didn't explain their reasoning and I just said that GETs can indeed have a body, but it goes against the spec, so it's gonna be hard unless "you own the entire stack", like a parallel comment said here. This way they have a base to explore more info later and improve for their next interview.