I'm going to use this to track the user-agents that don't claim to be
"HTTP/1.0" compliant in the first line of the request, yet still give a
"User-Agent" field, on hotwired and hyperreal - hopefully we'll get a
nice list we can post on www-talk to embarrass people :) The crux is, if
we can show that no one's using HTTP/0.9 anymore, I'd make the argument
for throwing out the assbackwards shit.
Brian
*** http_mime.c.old Sat Apr 29 16:57:18 1995
--- http_mime.c Sat Apr 29 17:33:29 1995
***************
*** 487,492 ****
--- 487,493 ----
}
void get_mime_headers(int fd, FILE *out) {
+ char errstr[MAX_STRING_LEN];
char w[MAX_STRING_LEN];
char l[MAX_STRING_LEN];
int num_inh, num_processed;
***************
*** 527,532 ****
--- 528,537 ----
note_client_accept_enc(l, out);
if(!strcasecmp(w,"Accept-language"))
note_client_accept_lang(l, out);
+ if(!strcasecmp(w,"User-Agent") && assbackwards) {
+ sprintf(errstr, "HTTP/0.9 User Agent: %s",l);
+ log_error(errstr);
+ }
http2cgi(w);
if(in_headers_env) {
*** http_request.c.old Sat Apr 15 11:05:40 1995
--- http_request.c Sat Apr 29 17:31:30 1995
***************
*** 216,227 ****
getword(w,l,'\0');
init_header_vars();
! if(w[0] != '\0') {
assbackwards = 0;
- get_mime_headers(in,out);
- }
else
assbackwards = 1;
if(!strcmp(m,"HEAD")) {
header_only=1;
--- 216,227 ----
getword(w,l,'\0');
init_header_vars();
! if(w[0] != '\0')
assbackwards = 0;
else
assbackwards = 1;
+
+ get_mime_headers(in,out);
if(!strcmp(m,"HEAD")) {
header_only=1;
"HTTP/1.0" compliant in the first line of the request, yet still give a
"User-Agent" field, on hotwired and hyperreal - hopefully we'll get a
nice list we can post on www-talk to embarrass people :) The crux is, if
we can show that no one's using HTTP/0.9 anymore, I'd make the argument
for throwing out the assbackwards shit.
Brian
*** http_mime.c.old Sat Apr 29 16:57:18 1995
--- http_mime.c Sat Apr 29 17:33:29 1995
***************
*** 487,492 ****
--- 487,493 ----
}
void get_mime_headers(int fd, FILE *out) {
+ char errstr[MAX_STRING_LEN];
char w[MAX_STRING_LEN];
char l[MAX_STRING_LEN];
int num_inh, num_processed;
***************
*** 527,532 ****
--- 528,537 ----
note_client_accept_enc(l, out);
if(!strcasecmp(w,"Accept-language"))
note_client_accept_lang(l, out);
+ if(!strcasecmp(w,"User-Agent") && assbackwards) {
+ sprintf(errstr, "HTTP/0.9 User Agent: %s",l);
+ log_error(errstr);
+ }
http2cgi(w);
if(in_headers_env) {
*** http_request.c.old Sat Apr 15 11:05:40 1995
--- http_request.c Sat Apr 29 17:31:30 1995
***************
*** 216,227 ****
getword(w,l,'\0');
init_header_vars();
! if(w[0] != '\0') {
assbackwards = 0;
- get_mime_headers(in,out);
- }
else
assbackwards = 1;
if(!strcmp(m,"HEAD")) {
header_only=1;
--- 216,227 ----
getword(w,l,'\0');
init_header_vars();
! if(w[0] != '\0')
assbackwards = 0;
else
assbackwards = 1;
+
+ get_mime_headers(in,out);
if(!strcmp(m,"HEAD")) {
header_only=1;