Hello world/Web server: Difference between revisions

Content deleted Content added
→‎{{header|C}}: double close
m →‎{{header|C}}: fold long lines
Line 22: Line 22:
#include <err.h>
#include <err.h>


char canned_response[] = "HTTP/1.1 200 OK\r\n"
char canned_response[] = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\n\r\n<html><head><title>Goodbye, world!</title><style>h1{font-size:4cm; color: red; text-shadow: .2cm .2cm black}</style></head><body><h1>Goodbye, world!</h1></body></html>\r\n";
"Content-Type: text/html; charset=UTF-8\r\n\r\n"
"<html><head><title>Goodbye, world!</title>"
"<style>h1{font-size:4cm; color: red; text-shadow: .2cm .2cm black}</style>"
"</head><body><h1>Goodbye, world!</h1></body></html>\r\n";


void reap(int x)
void reap(int x)