{"id":421,"date":"2023-05-30T11:56:53","date_gmt":"2023-05-30T09:56:53","guid":{"rendered":"http:\/\/yb-isn.fr\/2022\/nsi\/garthur\/?p=421"},"modified":"2023-05-30T11:56:53","modified_gmt":"2023-05-30T09:56:53","slug":"requetes-http","status":"publish","type":"post","link":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/2023\/05\/30\/requetes-http\/","title":{"rendered":"Requ\u00eates http"},"content":{"rendered":"\n<h3>Definition : <strong>Le Web s\u2019appuie sur le dialogue entre clients et serveurs. Les pages re\u00e7ues par les clients peuvent contenir des codes ex\u00e9cutables (souvent en JavaScript) qui permettent aux clients d\u2019effectuer des traitements en acc\u00e9dant aux ressources de son ordinateur et en interagissant avec les serveurs. L\u2019interaction est \u00e0 l\u2019initiative des clients qui envoient des requ\u00eates HTTP aux serveurs. Ces derniers renvoient leur r\u00e9sultat : des pages qu\u2019ils ont stock\u00e9es ou qu\u2019ils cr\u00e9ent dynamiquement (souvent en PHP) en fonction de la requ\u00eate formul\u00e9e.<\/strong><\/h3>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 style=\"font-style:normal;font-weight:600\">&#8211; Hauteur des nuages :<\/h2>\n\n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 style=\"font-style:normal;font-weight:600\">&#8211; Les formulaires :<\/h2>\n\n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul><li><strong>formulaires \u00ab\u00a0get\u00a0\u00bb :<\/strong><\/li><\/ul>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Quelques caract\u00e9ristiques importantes de ce formulaire :<\/p>\n\n\n\n<ul><li>Les requ\u00eates sont visibles, peuvent \u00eatre mises en cache, mises en favoris et \u00eatre enregistr\u00e9es dans l\u2019historique.  <\/li><li>Peuvent \u00eatre modifi\u00e9 par n&rsquo;importe qui.<\/li><li>Peut \u00eatre utilis\u00e9e en dehors d\u2019un formulaire par un lien.<\/li><li>Les donn\u00e9es doivent \u00eatre uniquement en caract\u00e8res ASCII.<\/li><li>Les donn\u00e9es sont limit\u00e9es en longueur.<\/li><\/ul>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>On rempli d&rsquo;abord le formulaire en ajoutant notre nom pr\u00e9nom et en d\u00e9finissant un mot de passe :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"364\" height=\"196\" src=\"http:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/Capture.png\" alt=\"\" class=\"wp-image-422\" srcset=\"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/Capture.png 364w, https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/Capture-300x162.png 300w\" sizes=\"(max-width: 364px) 100vw, 364px\" \/><\/figure>\n\n\n\n<p>Voici la requ\u00eate, on peut voir que cela a \u00e9t\u00e9 un succ\u00e8s :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"620\" height=\"139\" src=\"http:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image.png\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image.png 620w, https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image-300x67.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul><li>formulaires \u00ab\u00a0post\u00a0\u00bb :<\/li><\/ul>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Quelques caract\u00e9ristiques importantes de ce formulaire :<\/p>\n\n\n\n<ul><li>Param\u00e8tres non visibles par un utilisateur lambda.<\/li><li>Elles ne sont jamais mises en cache, comme elles ne peuvent pas \u00eatre mises en favoris ni \u00eatre dans l\u2019historique.<\/li><li>Reste modifiable par un utilisateur qui s\u2019y connait.<\/li><li>Aucunes restriction sur la longueur des donn\u00e9es.<\/li><li>Peut passer tout type de donn\u00e9es, ASCII comme binaire.<\/li><\/ul>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Voici la requ\u00eate de ce formulaire :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"715\" height=\"135\" src=\"http:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image-1.png\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image-1.png 715w, https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-content\/uploads\/sites\/9\/2023\/05\/image-1-300x57.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 style=\"font-style:normal;font-weight:600\">&#8211; <strong>Requ\u00eate en python<\/strong> :<\/h2>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Le premier code nous permet d&rsquo;afficher le fichier g\u00e9rant le plafond nuageux ainsi que <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition : Le Web s\u2019appuie sur le dialogue entre clients et serveurs. Les pages re\u00e7ues par les clients peuvent contenir des codes ex\u00e9cutables (souvent en JavaScript) qui permettent aux clients d\u2019effectuer des traitements en acc\u00e9dant aux ressources de son ordinateur et en interagissant avec les serveurs. L\u2019interaction est \u00e0 l\u2019initiative [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/posts\/421"}],"collection":[{"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":7,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/posts\/421\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yb-isn.fr\/2022\/nsi\/garthur\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}