I solve the basic HTML test. Got the following question: what type of request is performed through the address bar?

I know that when creating forms, the method attribute of the form tag indicates the type of GET or POST . I also see that if I set POST , then when I send the form, nothing will change in the address bar, unlike GET (data from the form will be included there). The answer involves choosing one of the options POST , GET , MEDIA , STREAM , but the methods MEDIA and STREAM not described in the HTTP protocol specification. So the answer is GET .
I suppose that the course of my thoughts may be wrong, so please write, how would you answer and why ? An interesting answer is interesting.

  • That is the question of the test. In the literature I have studied (for beginners) there is no answer, and it was not possible to find information outside in the first approximation. There is a desire to save time, so I will be grateful for the help. What interests you is not a tick opposite the right answer, but why (and where to read). Thank you in advance. - Val
  • I spent at least 5 hours searching for an answer on the Internet. This is categorically a lot for one, not the main issue at the moment. Therefore, @Pyramidhead, I appeal to the community. I would like to know the opinion of the person who owns a holistic picture. After all, this is what communities are needed for. - Val
  • @Pyramidhead Please do not send questions to the search engines - Nicolas Chabanovsky
  • Trying to find the answer, I began to delve into the HTTP 1.1 specification and wallowed in details, but I had to look at things more widely. The answer is closer to the browser. I will now try to answer the question myself, because I was not the only one who was interested in them in runet. I hope this answer I will help. Professionals, I think, he is not interested, but if someone improves it, I will be grateful. - Val
  • And one more important point. I want to thank @NicolasChabanovsky for the attentive attitude to beginners. - Val

1 answer 1

Entering the URL into the address bar of the browser results in the formation of a GET request, because it is the HTTP GET method that is intended for receiving / requesting the content of the resource. In this case, the user in this case interacts with the browser through the address bar.
In the case of a POST request, the user presses the submit button in the body of the HTML document itself displayed in the browser. Although this button by default also leads to the formation of a GET request, but again this will be a GET request (with sending web form data) formed after pressing the submit button, and not entering the address bar.