I don't see the h1 tag that should definitely be seen in post.
POST / HTTP/1.1
Host: ip:port
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: *
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: ja,en-US;q=0.9,en;q=0.8
Cookie: __auc=????; _ga=????; _gid=????
Connection: close
Content-Length: 79
postdatahear
This is the response to that. Actually, the -48 part of disappears along with the tag.
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 970
Server: Werkzeug/1.0.0 Python/2.7.17
Date: Sat, 19 Sep 2020 10:42:45 GMT
<!DOCTYPE html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta name='author' content='makelaris'>
<title>????</title>
<link rel='stylesheet' href='//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous'>
<link href='//fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet' type='text/css'>
<style>html, body {background-image: url('//????.jpg');} h1 {display: flex; justify-content: center; color: #6200ea; font-family: Comfortaa;}</style>
</head>
<body>
<img class='mx-auto d-block img-responsive' src='//????/media/eO8zgwAt3MVW/giphy.gif'>
<h1 style='font-size: 140px; text-shadow: 2px 2px 0 #0C3447, 5px 5px 0 #6a1b9a, 10px 10px 0 #00131E;'>-48</h1>
</body>
<!-- /debug -->
</html>
Since it says return render_template ('index.html', key = value), post indicates that the string that goes into the h1 tag is associated with value. I'm using flask as the python web framework.
Aucun commentaire:
Enregistrer un commentaire