Os dois métodos HTTP mais comuns são: GET e POST.

O que é HTTP?

O protocolo de transferência de hipertexto (HTTP, Hypertext Transfer Protocol) foi projetado para permitir a comunicação entre clientes e servidores. O HTTP funciona como um protocolo de solicitação-resposta entre um cliente e um servidor. Um navegador da Web pode ser o cliente e um aplicativo em um computador que hospeda um site da Web pode ser o servidor.

Exemplo: um cliente (navegador) envia uma solicitação HTTP ao servidor; então o servidor retorna uma resposta para o cliente. A resposta contém informações de status sobre a solicitação e também pode conter o conteúdo solicitado.

Métodos HTTP

  • PEGUE POSTAR
  • COLOCAR
  • CABEÇA
  • EXCLUIR
  • PATCH OPÇÕES

O método GET

GET é usado para solicitar dados de um recurso especificado. GET é um dos métodos HTTP mais comuns.

Observe que a string de consulta (pares nome / valor) é enviada na URL de uma solicitação GET:

 /test/demo_form.php?name1=value1&name2=value2

Algumas outras notas sobre solicitações GET:

  • Solicitações GET podem ser armazenadas em cache
  • As solicitações GET permanecem no histórico do navegador
  • Solicitações GET podem ser marcadas
  • As solicitações GET nunca devem ser usadas ao lidar com dados confidenciais
  • Solicitações GET têm restrições de tamanho
  • Pedidos GET são usados ​​apenas para solicitar dados (não modificar

O método POST

O POST é usado para enviar dados para um servidor para criar / atualizar um recurso.

Os dados enviados ao servidor com o POST são armazenados no corpo da solicitação da solicitação HTTP:

POST /test/demo_form.php HTTP/1.1
Host: w3schools.com
name1=value1&name2=value2

O POST é um dos métodos HTTP mais comuns.

Algumas outras notas sobre solicitações POST:

  • As solicitações POST nunca são armazenadas em cache
  • As solicitações POST não permanecem no histórico do navegador
  • Pedidos POST não podem ser marcados
  • Solicitações POST não têm restrições quanto ao tamanho dos dados

O método PUT

PUT é usado para enviar dados para um servidor para criar / atualizar um recurso.

A diferença entre POST e PUT é que as solicitações PUT são idempotentes. Ou seja, chamar a mesma solicitação PUT várias vezes sempre produzirá o mesmo resultado. Por outro lado, chamar uma solicitação POST repetidamente tem efeitos colaterais de criar o mesmo recurso várias vezes.

O método HEAD

HEAD é quase idêntico ao GET, mas sem o corpo de resposta.

Em outras palavras, se GET / users retornar uma lista de usuários, HEAD / users fará a mesma solicitação, mas não retornará a lista de usuários.

As solicitações HEAD são úteis para verificar o que uma solicitação GET retornará antes de fazer uma solicitação GET – como antes de fazer o download de um arquivo ou corpo de resposta grande.

O método DELETE

O método DELETE exclui o recurso especificado.

O método OPTIONS

O método OPTIONS descreve as opções de comunicação para o recurso de destino.

Esse artigo ajudou você?

84 respostas para “Métodos de solicitação HTTP”

  1. go to the website 9janewswatch.com

    Hola! I’ve been reading your blog for some time now and finally got the courage to go ahead and give you a shout out from Humble Texas! Just wanted to mention keep up the good work!

    Responder
  2. you can try these out

    After study a few of the blog posts in your website now, and I actually like your method of blogging. I bookmarked it to my bookmark website record and will likely be checking again soon. Pls take a look at my site as nicely and let me know what you think.

    Responder
  3. look at this site legal-news-central.com

    Do you have a spam problem on this blog; I also am a blogger, and I was curious about your situation; we have created some nice practices and we are looking to exchange strategies with others, please shoot me an email if interested.

    Responder
  4. local plumber near me check my blog

    I’d need to test with you here. Which is not one thing I normally do! I enjoy studying a publish that may make individuals think. Additionally, thanks for allowing me to comment!

    Responder
  5. home security screens

    Interesting blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your theme. Thanks

    Responder
  6. Cherri Puccio

    I have fun with, lead to I discovered just what I was taking a look for. You’ve ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

    Responder
  7. see here now 336news.com

    I enjoy you because of all your effort on this website. Betty loves getting into research and it’s simple to grasp why. All of us notice all concerning the lively ways you present advantageous suggestions through your blog and as well encourage response from other people on that concern so my simple princess is truly starting to learn so much. Take advantage of the rest of the year. You’re the one conducting a good job.

    Responder
  8. Benjamin Mcnichols

    Definitely, what a great blog and illuminating posts, I will bookmark your site.All the Best!

    Responder
  9. Halley Belone

    Most of us have missed this main idea. Your blog posts are assisting me in exploring some required facts. You should continue your research.

    Responder
  10. his explanation electricians in san diego

    This design is incredible! You obviously know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented it. Too cool!

    Responder
  11. Bio Melt Pro

    It’s hard to come by experienced people about this subject, however, you seem like you know what you’re talking about! Thanks

    Responder
  12. Saundra Lorden

    Thanks for another informative site. Where else could I get that kind of information written in such an ideal way? I’ve a project that I am just now working on, and I’ve been on the look out for such info.

    Responder
  13. June Neumayer

    But wanna say that this is very helpful , Thanks for taking your time to write this.

    Responder
  14. female founded

    Hello! I could have sworn I’ve visited this website before but after going through some of the posts I realized it’s new to me. Anyhow, I’m definitely happy I stumbled upon it and I’ll be book-marking it and checking back regularly!

    Responder
  15. porno

    you’re actually a just right webmaster. The site loading speed is incredible. It seems that you’re doing any distinctive trick. In addition, The contents are masterpiece. you have performed a fantastic job on this topic!

    Responder
  16. thé rouge

    Thanks for every one of your efforts on this web page. My mom takes pleasure in engaging in investigation and it is easy to see why. We all hear all regarding the compelling way you present valuable secrets via this website and boost contribution from some others on that article while our daughter is now learning a lot. Take advantage of the remaining portion of the new year. You’re the one doing a useful job.

    Responder
  17. electronics sales daily

    I was extremely pleased to uncover this web site. I wanted to thank you for your time just for this wonderful read!! I definitely savored every little bit of it and i also have you bookmarked to see new stuff in your website.

    Responder
  18. Claude Bassali

    Advantageously, the send is in reality the sweetest on this creditable topic.

    Responder
  19. Best cheap flights app download

    I would like to thank you for the efforts you have put in writing this blog. I’m hoping to check out the same high-grade content from you in the future as well. In truth, your creative writing abilities has inspired me to get my own blog now 😉

    Responder
  20. cialis no prescription

    I simply wished to appreciate you all over again. I am not sure the things that I would’ve worked on without the tactics revealed by you regarding such concern. It seemed to be an absolute frightening issue in my opinion, but viewing a expert fashion you treated it took me to cry with contentment. I will be grateful for the work and thus have high hopes you are aware of an amazing job you were undertaking teaching many others with the aid of your websites. I’m certain you’ve never got to know any of us.

    Responder
  21. gaming news

    After checking out a handful of the blog posts on your website, I truly like your way of writing a blog. I saved it to my bookmark site list and will be checking back soon. Please visit my web site too and tell me what you think.

    Responder
  22. Elva Zeh

    Some genuinely prime posts on this website , bookmarked .

    Responder
  23. Synapse XT

    I absolutely love your website.. Great colors & theme. Did you make this site yourself? Please reply back as I’m hoping to create my very own blog and would love to know where you got this from or just what the theme is called. Kudos.

    Responder
  24. go to this site

    I’ve been absent for a while, but now I remember why I used to love this website. Thanks , I’ll try and check back more often. How frequently you update your site?

    Responder
  25. check my reference

    Well I sincerely liked studying it. This tip offered by you is very effective for correct planning.

    Responder
  26. https://jbokeo.com/

    Very good info. Lucky me I ran across your site by accident (stumbleupon). I’ve saved as a favorite for later!

    Responder
  27. Elyssa Taylor

    Thanks for creating this awesome article. I will return to read more.

    Responder
  28. Pool table movers

    I’d need to test with you here. Which is not one thing I often do! I take pleasure in studying a submit that will make individuals think. Also, thanks for permitting me to remark!

    Responder
  29. sexy wedding lingerie

    Thanks for another informative web site. Where else could I get that kind of information written in such a perfect way? I’ve a project that I am just now working on, and I have been on the look out for such info.

    Responder
  30. 죠스출장안마

    I quite like looking through a post that will make men and women think. Also, many thanks for allowing for me to comment!

    Responder
  31. six hour drivers ed near orleans illinois

    Throughout the awesome design of things you get an A just for effort. Where exactly you actually confused us was first in all the particulars. You know, people say, details make or break the argument.. And it couldn’t be more accurate at this point. Having said that, let me inform you just what exactly did do the job. The writing is definitely extremely engaging and that is possibly the reason why I am taking an effort in order to comment. I do not really make it a regular habit of doing that. 2nd, while I can easily notice the leaps in reason you come up with, I am definitely not convinced of exactly how you appear to connect the ideas which make your conclusion. For now I will, no doubt yield to your position however trust in the foreseeable future you link the facts better.

    Responder
  32. Ali Mehtani

    Having read this I thought it was very informative. I appreciate you finding the time and effort to put Casino Live Game this content together. I once again find myself spending a significant amount of time both reading and commenting

    Responder
  33. ProstaStream Ingredients side effects

    The very next time I read a blog, Hopefully it doesn’t disappoint me as much as this one. After all, Yes, it was my choice to read through, however I really believed you would probably have something useful to talk about. All I hear is a bunch of complaining about something that you could fix if you weren’t too busy searching for attention.

    Responder
  34. Inger Ramaker

    Thank you, I’ve just been searching for information about this topic for a while and yours is the greatest I’ve discovered till now. But, what in regards to the conclusion? Are you sure concerning the supply?Dwayne Olander

    Responder
  35. pink sex toy

    I am not sure where you’re getting your information, but good topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

    Responder
  36. size 20 womens underwear

    Hello! I just wish to give a huge thumbs up for the great data you may have right here on this post. I will likely be coming back to your blog for more soon.

    Responder
  37. glamour lingerie

    I precisely desired to thank you so much all over again. I am not sure the things that I would have implemented in the absence of the actual tips and hints shared by you regarding that situation. It was actually an absolute traumatic concern for me, however , encountering your well-written style you dealt with it made me to jump over delight. I am grateful for your help and as well , hope you realize what a powerful job your are providing training the mediocre ones by way of your webblog. More than likely you haven’t got to know all of us.

    Responder
  38. YouTube Monetization

    I really enjoyed this blog post. You are an excellent blogger. I’ll be back to see another! Thank you

    Responder
  39. Skincell Pro Review

    This is a topic that’s near to my heart… Thank you! Exactly where are your contact details though?

    Responder
  40. Master Kush Feminized Cannabis Seeds

    After looking over a few of the blog posts on your website, I truly appreciate your technique of writing a blog. I book-marked it to my bookmark website list and will be checking back soon. Take a look at my website as well and let me know your opinion.

    Responder
  41. Leslee Littledave

    Just wanted to say thanks! I love sucking dick btw hmu

    Responder
  42. open butt lingerie

    I am really loving the theme/design of your website. Do you ever run into any web browser compatibility issues? A number of my blog visitors have complained about my website not operating correctly in Explorer but looks great in Opera. Do you have any recommendations to help fix this problem?

    Responder
  43. christmas gifts for him

    What i do not understood is in fact how you are not really a lot more neatly-liked than you might be right now. You are very intelligent. You realize thus considerably when it comes to this topic, produced me individually consider it from so many various angles. Its like men and women don’t seem to be involved until it is something to accomplish with Woman gaga! Your personal stuffs outstanding. Always deal with it up!

    Responder
  44. 摩托車

    I’ve read a few good stuff here. Certainly worth bookmarking for revisiting. I surprise how much effort you put to make such a wonderful informative website.

    Responder
  45. Maragret Knippenberg

    Having read this I believed it was extremely informative. I appreciate you taking the time and effort to put judi dadu sicbo online this informative article together. I once again find myself spending a significant amount of time both reading and leaving comments

    Responder
  46. University Furnishings Delivery

    Undeniably imagine that that you said. Your favourite justification appeared to be at the web the easiest factor to be aware of. I say to you, I certainly get irked at the same time as people consider issues that they just do not know about. You managed to hit the nail upon the highest as smartly as outlined out the whole thing with no need side effect , other people could take a signal. Will likely be again to get more. Thank you

    Responder
  47. free horror

    You’re so awesome! I do not believe I have read through a single thing like that before. So wonderful to find another person with a few genuine thoughts on this subject. Really.. many thanks for starting this up. This website is one thing that’s needed on the web, someone with a bit of originality.

    Responder
  48. go to this website legal news central

    I have to express my appreciation to this writer for bailing me out of this predicament. Right after exploring through the internet and meeting methods which were not helpful, I believed my life was done. Existing minus the solutions to the problems you’ve fixed by means of your entire short article is a serious case, and those that would have in a wrong way affected my career if I hadn’t noticed the website. Your talents and kindness in handling all areas was useful. I am not sure what I would have done if I hadn’t come across such a point like this. It’s possible to at this time look forward to my future. Thanks very much for the reliable and effective guide. I won’t think twice to propose your web blog to anyone who will need guidelines on this subject.

    Responder
  49. accessories

    Oh my goodness! Incredible article dude! Many thanks, However I am experiencing difficulties with your RSS. I don’t know why I can’t join it. Is there anyone else having similar RSS problems? Anyone that knows the answer can you kindly respond? Thanx!

    Responder
  50. Tim Affiliate

    Fantastic blog post! I’ll return to see your next piece! Thanks!

    Responder
  51. Anton Sauvageau

    Youre so cool! I dont suppose Ive read anything similar to this prior to. So nice to get somebody with many original thoughts on this subject. realy we appreciate you starting this up. this site is something that is required on the web, someone with a little originality. helpful problem for bringing something totally new towards the web!

    Responder
  52. Al Syverson

    The last I checked on this subject was very some time back. I’m much more into Cheap SEO. Nonetheless, fascinating post and I would check back once more soon and get myself much more updated.

    Responder
  53. Charlotte exterminators

    If you are looking for the ultimate pest control company, look no further. These guys dominate!

    Responder
  54. Pretty Gaming

    You should take part in a contest for one of the most useful websites online. I’m going to recommend this blog!

    Responder
  55. Elyse Luque

    It’s hard to find knowledgeable folks during this topic, however, you could be seen as do you know what you are dealing with! Thanks

    Responder
  56. 슬롯 머신

    Best view i have ever seen !

    Responder
  57. White glove service

    Thanks for the sensible critique. Me and my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more clear from this post. I am very glad to see such wonderful information being shared freely out there.

    Responder
  58. Quentin Neugin

    I always visit new blog everyday and i found your blog.;”;“

    Responder
  59. 스포츠 북

    Best view i have ever seen !

    Responder
  60. Adeline Bartrum

    I’d must check with you here. Which isn’t some thing It’s my job to do! I enjoy reading an article that may get people to believe. Also, thank you for allowing me to comment!

    Responder
  61. What is medicare Advantage

    You need to take part in a contest for one of the most useful websites online.
    I will recommend this site!

    Responder
  62. Mondraker Bikes for sale

    I must show appreciation to you for rescuing me from this type of scenario. After looking through the internet and obtaining principles which are not beneficial, I thought my life was over. Being alive devoid of the answers to the issues you’ve sorted out by means of your short post is a crucial case, as well as the ones that might have in a wrong way damaged my entire career if I had not encountered the website. Your main natural talent and kindness in taking care of the whole lot was valuable. I’m not sure what I would have done if I had not come upon such a step like this. I can also now look ahead to my future. Thank you very much for this reliable and results-oriented guide. I will not be reluctant to endorse your blog post to any individual who would like assistance about this matter.

    Responder
  63. additional resources

    I simply want to mention I am new to blogging and honestly enjoyed your web blog. Very likely I’m likely to bookmark your blog . You actually have great posts. Thank you for revealing your web page.

    Responder
  64. best home Warranty

    Greetings! Verry helpful advice in this particular article!
    It’s the little changes thast make the most important changes.
    Many thanks for sharing!

    Responder
  65. foundation repair fort worth

    You made a few nice points there. I did a search on the theme and found mainly folks will go along with with your blog.

    Responder
  66. water heater repair near me click for more

    I was just searching for this info for a while. After 6 hours of continuous Googleing, finally I got it in your web site. I wonder what is the lack of Google strategy that do not rank this type of informative sites in top of the list. Generally the top sites are full of garbage.

    Responder
  67. VitalFlow official website

    I couldn’t refrain from commenting. Exceptionally well written!

    Responder
  68. slot games

    Best view i have ever seen !

    Responder
  69. 마사지구인구직

    Amazing. Guru. You’re a new guru. Thank you.

    Responder
  70. plumbing repair site here

    I have been browsing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did, the web will be much more useful than ever before.

    Responder
  71. home Warranty insurance companies

    I simply wznt to input that you have ? good website ?nd I enjoy the design and also artcles ?n it!

    Responder
  72. White glove delivery

    I like this weblog so much, saved to bookmarks. “To hold a pen is to be at war.” by Francois Marie Arouet Voltaire.

    Responder
  73. remodeling home improvement

    Very good written post. It will be supportive to anyone who employess it, including yours truly :). Keep up the good work – for sure i will check out more posts.

    Responder
  74. porno

    Magnificent goods from you, man. I have understand your stuff previous to and you are just too great. I actually like what you have acquired here, certainly like what you are stating and the way in which you say it. You make it enjoyable and you still take care of to keep it wise. I cant wait to read far more from you. This is actually a great web site.

    Responder
  75. Pool table movers

    An impressive share, I simply given this onto a colleague who was doing somewhat analysis on this. And he in fact purchased me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love reading extra on this topic. If potential, as you turn into experience, would you thoughts updating your weblog with more particulars? It is extremely useful for me. Big thumb up for this blog submit!

    Responder
  76. nation

    This is the proper blog for anybody who wants to search out out about this topic. You notice a lot its almost arduous to argue with you (not that I really would want…HaHa). You definitely put a brand new spin on a subject thats been written about for years. Nice stuff, just great!

    Responder
  77. modulo 9 marketing digital

    I just couldn’t depart your website prior to suggesting that I actually enjoyed the standard information a person provide for your visitors? Is gonna be back often in order to check up on new posts

    Responder
  78. this link

    I simply want to mention I am new to blogging and actually loved this website. Probably I’m likely to bookmark your site . You absolutely have excellent stories. With thanks for sharing with us your website.

    Responder
  79. roadside assistance

    Awsome site! I am loving it!! Will come back again. I am bookmarking your feeds also.

    Responder
  80. click here to read

    Together with every little thing that appears to be developing inside this area, all your opinions are actually quite exciting. Nevertheless, I am sorry, but I can not subscribe to your whole strategy, all be it stimulating none the less. It looks to everyone that your opinions are not entirely justified and in reality you are generally yourself not even wholly confident of your assertion. In any event I did appreciate looking at it.

    Responder
  81. Shelby Bolding

    I just want to say I’m very new to blogging and seriously savored this web site. Most likely I’m want to bookmark your site . You amazingly come with superb article content. With thanks for revealing your website page.

    Responder

Comente sobre este conteúdo! Escreva o que pensa, complemente, vamos discutir. O conhecimento é livre!