Exemple #1
0
static int response_err400_process_request(struct http_state *http, const char *method, const char *url)
{
	if (http->code != HTTP_BADREQ)
		return 0;
	response_static_process_request(http, "<http><head><title>400</title></head>\r\n<body>400 - BAD REQUEST</body></html>\r\n");
	return 1;
}
Exemple #2
0
static int response_fuses_process_request(struct http_state *http, const char *method, const char *url) {
    if (strcmp(method, "GET"))
        return 0;

    if (strcmp(url, "/FUSE"))
        return 0;

    http->code = 200;
    response_static_process_request(http, FUSES);
    return 1;
}
Exemple #3
0
static int response_err404_process_request(struct http_state *http, const char *method, const char *url)
{
	http->code = HTTP_NOTFOUND;
	response_static_process_request(http, "<http><head><title>404</title></head>\r\n<body>404 - Document not found</body></html>\r\n");
	return 1;
}
Exemple #4
0
static int response_err404_process_request(struct http_state *http, const char *method, const char *url) {
    http->code = 404;
    response_static_process_request(http, "<html>\n<head>\n<title>XeLL - 404</title>\n</head>\n<body>\n<h1>404 - Document not found</h1>\n</body>\n</html>\n");
    return 1;
}
Exemple #5
0
static int response_err400_process_request(struct http_state *http, const char *method, const char *url) {
    if (http->code != 400)
        return 0;
    response_static_process_request(http, "<html>\n<head>\n<title>XeLL - 400</title>\n</head>\n<body>\n<h1>400 - BAD REQUEST</h1>\n</body>\n</html>\n");
    return 1;
}