diff -urN ../validator2/cgi-bin/check ./cgi-bin/check --- ../validator2/cgi-bin/check Sat Feb 18 14:06:41 2006 +++ ./cgi-bin/check Thu May 25 16:11:57 2006 @@ -989,6 +989,11 @@ my $ua = new W3C::Validator::UserAgent ($CFG, $File); $ua->env_proxy(); $ua->agent("W3C_Validator/$VERSION"); + if (($q->param('accept') ne "none") && $q->param('accept')) + { + $ua->default_headers->push_header('Accept' => $q->param('accept')); + $T->param("accept " . $q->param('accept') => TRUE ); + } $ua->parse_head(0); # Don't parse the http-equiv stuff. $ua->protocols_allowed($CFG->{Protocols}->{Allow} || ['http', 'https']); diff -urN ../validator2/htdocs/accept-select.html ./htdocs/accept-select.html --- ../validator2/htdocs/accept-select.html Wed Dec 31 18:00:00 1969 +++ ./htdocs/accept-select.html Wed May 24 14:35:52 2006 @@ -0,0 +1,5 @@ + diff -urN ../validator2/htdocs/detailed-form.html ./htdocs/detailed-form.html --- ../validator2/htdocs/detailed-form.html Thu Feb 16 00:40:47 2006 +++ ./htdocs/detailed-form.html Wed May 24 14:52:19 2006 @@ -54,6 +54,13 @@ + + + + + + + Options (Help): diff -urN ../validator2/htdocs/xml-results.css ./htdocs/xml-results.css --- ../validator2/htdocs/xml-results.css Mon Feb 24 17:33:18 2003 +++ ./htdocs/xml-results.css Wed May 24 14:27:39 2006 @@ -7,7 +7,7 @@ $Id: xml-results.css,v 1.5 2003/02/24 23:33:18 ville Exp $ */ -result, meta, uri, modified, server, size, encoding, doctype, warnings, messages {display: block} +result, meta, uri, modified, server, size, encoding, doctype, accept, warnings, messages {display: block} strong, a {display: inline} meta { @@ -23,6 +23,7 @@ size {text-before: 'Size: '} encoding {text-before: 'Encoding: '} doctype {text-before: 'Doctype: '} +accept {text-before: 'Accept: '} warnings { border-top: 1px solid red; diff -urN ../validator2/htdocs/xml-results.xsl ./htdocs/xml-results.xsl --- ../validator2/htdocs/xml-results.xsl Wed Jul 21 10:06:55 2004 +++ ./htdocs/xml-results.xsl Wed May 24 14:25:59 2006 @@ -32,6 +32,7 @@ Content-Length Encoding Doctype + Accept diff -urN ../validator2/share/templates/en_US/popup_accept.tmpl ./share/templates/en_US/popup_accept.tmpl --- ../validator2/share/templates/en_US/popup_accept.tmpl Wed Dec 31 18:00:00 1969 +++ ./share/templates/en_US/popup_accept.tmpl Thu May 25 16:04:19 2006 @@ -0,0 +1,5 @@ + diff -urN ../validator2/share/templates/en_US/table.tmpl ./share/templates/en_US/table.tmpl --- ../validator2/share/templates/en_US/table.tmpl Sat Feb 11 06:38:46 2006 +++ ./share/templates/en_US/table.tmpl Wed May 24 15:16:06 2006 @@ -55,6 +55,14 @@ Doctype: + + + : + + + + Accept: +