Skip to content
Minute Campus.

Interview questions, answeredLesson 011 min

Interview question: what is the difference between GET and POST?

GET and POST are HTTP request methods. GET asks for information, and the standard calls it safe: the client does not expect any change on the server. POST sends data to be processed, such as a form or an order, and can change things on the server. So POST is not idempotent: sending the same request twice can do the work twice, and a proxy must not retry it automatically.

Remember

Use GET to look things up, and POST to create or change something.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1RFC 9110: HTTP SemanticsIETF · June 2022 · read 14 Nov 2026Defines safe and idempotent methods, and the GET and POST methods; a proxy must not retry non-idempotent requests.
  2. 2urllib.requestPython 3.9 documentation · read 14 Nov 2026The default method is GET if data is None, and POST otherwise.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

Interview question: what is the difference between GET and POST? Both are HTTP request methods, the word a browser sends with each request. GET asks for information. The standard calls it safe: the client does not expect any change on the server. Reload a search page and nothing changes. POST sends data to be processed, such as a form or an order, and it can change things on the server. Because of that, POST is not idempotent. Sending the same request twice can do the work twice, so a proxy must not retry it automatically. In Python, attaching data to a request turns it into a POST. Interviewers often ask the follow-up: which one is safe to repeat? GET. Model answer: GET reads a resource without changing it. POST asks the server to process what you send. Use GET to look things up, and POST to create or change something.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.