diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-20 23:19:23 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-20 23:19:23 +0200 |
| commit | 204472f3341dfccbd9c9ef753ea90de9d4c817b8 (patch) | |
| tree | 0ed918b165009c851cf70a9c63612bf2c33b7e5a /server.cpp | |
| parent | b59305a2c9b4b48e59ccaeafedf2a9d7aaab7516 (diff) | |
| download | use-fastcgi-204472f3341dfccbd9c9ef753ea90de9d4c817b8.tar.gz use-fastcgi-204472f3341dfccbd9c9ef753ea90de9d4c817b8.tar.bz2 use-fastcgi-204472f3341dfccbd9c9ef753ea90de9d4c817b8.zip | |
Umgebungsvariablen ausgeben
Diffstat (limited to 'server.cpp')
| -rw-r--r-- | server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -80,6 +80,12 @@ handle_request(char** env, const Configuration&, string_view body, ostream& out) | |||
| 80 | out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; | 80 | out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; |
| 81 | out << "<h1>Verbindung erfolgreich verarbeitet!</h1>"; | 81 | out << "<h1>Verbindung erfolgreich verarbeitet!</h1>"; |
| 82 | out << "<p>Methode: " << (methode ? methode : "?") << ", Body: " << body.size() << " Bytes</p>"; | 82 | out << "<p>Methode: " << (methode ? methode : "?") << ", Body: " << body.size() << " Bytes</p>"; |
| 83 | |||
| 84 | out << "<pre>"; | ||
| 85 | for (int i=0; env[i] != NULL; ++i) { | ||
| 86 | out << env[i] << '\n'; | ||
| 87 | } | ||
| 88 | out << "</pre>"; | ||
| 83 | } | 89 | } |
| 84 | 90 | ||
| 85 | void | 91 | void |
