LINK REL="SHORTCUT ICON" href="http://medias
Transcription
LINK REL="SHORTCUT ICON" href="http://medias
<html> <head> <LINK REL="SHORTCUT ICON" href="http://medias.lemonde.fr/medias/info/favicon.ico"> <title>Le Monde.fr : A la Une</title> <meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW,NOARCHIVE"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <meta http-equiv="Refresh" content="1802"> <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> 1 2 3 4 <body> <h1> Premier formulaire </h1> <form action="premiere_action.php" method="get"> <p> Votre nom: <input type="text" name="nom" size="25"/> </p> <p> Votre prénom: <input type="text" name="prenom" size="25"/> </p> <p> <input type="submit" name="bout" value="valider"/> </p> </form> </body> 5 <?php echo ’<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <title> Première action </title> </head> <body> <h1> Première action </h1>’; $nom = $_GET[’nom’]; $prenom = $_GET[’prenom’]; print "<p> Bonjour $prenom $nom! </p>\n"; echo ’ </body> </html> ’; ?> 6 GET /FB/premiere_action.php?nom=Barthelemy&prenom=Francois HTTP Host: lmi32.cnam.fr:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Accept: text/xml,application/xml,application/xhtml+xml,text/htm Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://lmi32.cnam.fr/FB/premier-formulaire-test.html 7 GET /FB/premiere_action.php?nom=Barthelemy&prenom=Francois HTTP Host: lmi32.cnam.fr:8080 HTTP/1.1 200 OK Date: Thu, 10 Nov 2005 14:09:31 GMT Server: Apache/2.0.50 (Linux/SUSE) X-Powered-By: PHP/4.3.8 Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1 133 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <title> Première action </title> </head> 8 <body> <h1> Première action </h1> 26 <p> Bonjour Francois Barthelemy! </p> 13 </body> </html> 0 9 10 <form action="premiere_action.php" method="get"> <p> input-text: <input type="text" name="nom" size="25" value="le texte"/> </p> <p> input-passwd: <input type="password" name="motpss" value="truc" size="25" </p> <p> input-checkbox: <input value="OK" name="rt11" type="checkbox"/> <input value="alala" name="rt12" type="checkbox" checked="checked" /> </p> <p> input-radio: oui: <input type="radio" name="rtl" value="oui"/> non: <input type="radio" name="rtl" value="non"/> </p> <p> input-file: <input type="file" name="fichier" /></p> 11 <p> select: <select name="pays" size="3"> <option value="fr" selected="selected">France</option> <option value="it">Italie</option> <option value="uk">Royaume-Uni</option> </select> textarea: <textarea cols="10" rows="4" name="article"> le texte affiché. </textarea> </p> <p> input-submit: <input type="submit" value="valider" name="bouton"/> input-image: <input type="image" name="imbut" value="oui" src="button1.p </p> </form> 12 13 <form action="premiere_action.php" method="post"> <p> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"><br> <button name="submit" value="submit" type="submit"> Send </button> <button name="reset" type="reset"> Reset <img src="button1.png" alt="oops"> </button> <button name="reset" type="reset"> <table rules="all" border="1"> <tr><td>1</td><td>2</td></tr> <td>1</td><td>2</td></tr></table> </button> </p> </form> 14 <form action="premiere_action.php" method="get"> <p> <label for="exemplelabel"> Nom : <input id="exemplelabel" type="text"> </label> </p> <p> <input type="submit" value="valider"/> </p> </form> 15 16 <form action="premiere-action.php"> <fieldset> <legend>Adhérent</legend> <p>Nom: <input name="adhernom" type="text"></p> <p>Prénom : <input name="adherprenom" type="text"></p> </fieldset> <fieldset> <legend>Conjoint(e)</legend> <p>Nom : <input name="conjnom" type="text"></p> <p>Prénom : <input name="conjprenom" type="text"></p> </fieldset> </form> 17 <form action="http://lmi32:8080/x.php" method="GET"> <form action="http://lmi32:8080/x.php" method="POST"> <form action="http://lmi32:8080/x.php" method="POST" enctype="multipart/form-data"> GET /x.php?nom=Barth%E9lemy&prenom=Fran%E7ois HTTP/1.1 Host: lmi32:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Accept: text/xml,application/xml,application/xhtml+xml,text/htm Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://lmi32.cnam.fr/FB/premier-formulaire-test.html 18 POST / HTTP/1.1 Host: lmi32.cnam.fr:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Accept: text/xml,application/xml,application/xhtml+xml,text/htm Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://lmi32.cnam.fr/FB/premier-formulaire-test.html Content-Type: application/x-www-form-urlencoded Content-Length: 34 nom=Barth%E9lemy&prenom=Fran%E7ois 19 POST /x.php HTTP/1.1 Host: lmi32:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Connection: keep-alive Referer: http://lmi32.cnam.fr/FB/premier-formulaire-test.html Content-Type: multipart/form-data; boundary=------------------Content-Length: 302 -----------------------------197492275410092958521989045536 Content-Disposition: form-data; name="nom" Barthı̈¿ 12 lemy -----------------------------197492275410092958521989045536 Content-Disposition: form-data; name="prenom" Franı̈¿ 12 ois -----------------------------197492275410092958521989045536-20 21 <form action="http://lmi32:8080/x.php" method="POST" enctype="multipart/form-data"> <p> Votre nom: <input type="text" name="nom" size="25"/> </p> <p> Votre prénom: <input type="text" name="prenom" size="25"/> </p> <p> Votre fichier: <input type="file" name="fichier"/> </p> <p> <input type="submit" value="valider"/> </p> </form> 22 POST /x.php HTTP/1.1 Host: lmi32:8080 Content-Type: multipart/form-data; boundary=---------------------------4694 Content-Length: 557 -----------------------------4694928561842118932886855101 Content-Disposition: form-data; name="nom" Barthı̈¿ 12 lemy -----------------------------4694928561842118932886855101 Content-Disposition: form-data; name="prenom" Franı̈¿ 12 ois -----------------------------4694928561842118932886855101 Content-Disposition: form-data; name="fichier"; filename="corbeau.txt" Content-Type: text/plain c maitre corbeau sur un arbre perchà tenait en son bec un fromage c à c maitre renard par l’odeur allÃch -----------------------------4694928561842118932886855101-23