bozo_printf
bozo_printf(httpd,
bozo_printf(httpd, "%s 301 Document Moved\r\n", request->hr_proto);
bozo_printf(httpd, "Location: %s\r\n", finalurl);
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "<html><head><title>Document Moved</title></head>\n");
bozo_printf(httpd, "<body><h1>Document Moved</h1>\n");
bozo_printf(httpd, "This document had moved <a href=\"%s\">here</a>\n",
bozo_printf(httpd, "</body></html>\n");
bozo_printf(httpd, "%s 304 Not Modified\r\n",
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "%s 206 Partial Content\r\n",
bozo_printf(httpd, "%s 200 OK\r\n", request->hr_proto);
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "%s: %s\r\n", hdr->h_header,
bozo_printf(httpd, "Date: %s\r\n", bozo_http_date(date, sizeof(date)));
bozo_printf(httpd, "Server: %s\r\n", httpd->server_software);
bozo_printf(httpd, "Accept-Ranges: bytes\r\n");
bozo_printf(httpd, "Last-Modified: %s\r\n", filedate);
bozo_printf(httpd, "Content-Type: %s\r\n", type);
bozo_printf(httpd, "Content-Encoding: %s\r\n", encoding);
bozo_printf(httpd,
bozo_printf(httpd, "Content-Length: %qd\r\n", (long long)len);
bozo_printf(httpd, "Connection: close\r\n");
bozo_printf(httpd, "%s %s\r\n", proto, header);
bozo_printf(httpd, "%s: %s\r\n", hdr->h_header,
bozo_printf(httpd, "Content-Type: text/html\r\n");
bozo_printf(httpd, "Content-Length: %d\r\n", size);
bozo_printf(httpd, "Server: %s\r\n", httpd->server_software);
bozo_printf(httpd, "Allow: %s\r\n", request->hr_allow);
bozo_printf(httpd, "Connection: close\r\n");
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "%s", httpd->errorbuf);
int bozo_printf(bozohttpd_t *, const char *, ...) BOZO_PRINTFLIKE(2, 3);
bozo_printf(httpd, "%s %s\r\n", request->hr_proto,
bozo_printf(httpd,
bozo_printf(httpd, "%s: %s\r\n", hdr->h_header,
bozo_printf(httpd, "\r\n");
bozo_printf(httpd,
bozo_printf(httpd, "<title>Index of %s</title></head>\r\n",
bozo_printf(httpd, "<body><h1>Index of %s</h1>\r\n",
bozo_printf(httpd,
bozo_printf(httpd, "<tr><td>");
bozo_printf(httpd, "<a href=\"../\">");
bozo_printf(httpd, "Parent Directory");
bozo_printf(httpd, "<a href=\"%s/\">", urlname);
bozo_printf(httpd, "%s/", htmlname);
bozo_printf(httpd, "<a href=\"./%s\">", urlname);
bozo_printf(httpd, "%s", htmlname);
bozo_printf(httpd, "<a href=\"%s\">", urlname);
bozo_printf(httpd, "%s", htmlname);
bozo_printf(httpd, "</a>");
bozo_printf(httpd, "<td>?<td>?\r\n");
bozo_printf(httpd, "<td>%s", buf);
bozo_printf(httpd, "<td align=right>%llukB", len);
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "</table>\r\n");
bozo_printf(httpd, "</body></html>\r\n\r\n");
bozo_printf(httpd, "%s 200 OK\r\n", request->hr_proto);
bozo_printf(httpd, "\r\n");
bozo_printf(httpd, "%s\r\n", lua_tostring(L, 1));