Home
last modified time | relevance | path

Searched refs:auth_header (Results 1 – 2 of 2) sorted by relevance

/civetweb-2.7.6/test/
Dtest.pl342 my $auth_header = "Digest username=\"user with space, \\\" and comma\", ".
345 …o("GET /hello.txt HTTP/1.0\nAuthorization: $auth_header\n\n", 'HTTP/1.1 200 OK', 'GET regular file…
346 o("GET / HTTP/1.0\nAuthorization: $auth_header\n\n", '^(.(?!(.htpasswd)))*$',
348 o("GET / HTTP/1.0\nAuthorization: $auth_header\n\n", '^(.(?!(exploit.pl)))*$',
350 o("GET /.htpasswd HTTP/1.0\nAuthorization: $auth_header\n\n",
352 o("GET /exploit.pl HTTP/1.0\nAuthorization: $auth_header\n\n",
433 my $auth_header = "Authorization: Digest username=guest, ".
438 o("PUT /a/put.txt HTTP/1.0\nContent-Length: 7\n$auth_header\n1234567",
442 o("PUT /a/put.txt HTTP/1.0\nContent-Length: 4\n$auth_header\nabcd",
446 o("PUT /a/put.txt HTTP/1.0\n$auth_header\nabcd",
[all …]
/civetweb-2.7.6/src/
Dcivetweb.c8185 const char *auth_header; local
8193 if (((auth_header = mg_get_header(conn, "Authorization")) == NULL)
8194 || mg_strncasecmp(auth_header, "Digest ", 7) != 0) {
8199 (void)mg_strlcpy(buf, auth_header + 7, buf_size);