Daniel Brown wrote: > On Wed, Mar 11, 2009 at 12:38, Jan G.B. <ro0ot.w...@googlemail.com> wrote: >> One more thing to mention: The HTTP Protocoll requires you to give a >> full URL on "Location" Headers. That means that this is wrong: >> "Location: file.txt" >> and this is correct >> "Location: http://www.x.x/file.txt" >> >> Not all clients behave like yours and accept the wrong header. > > The *protocol* does not, but the HTTP/1.1 specification does. > However, it should be noted that *all* modern browsers accept relative > URI's vs. the requirement of absolute URI's. Thus, the header is > "non-standard," but is not "wrong." Your point is accurate, though: > it should include the full resource. > >> erm .... <META> should be in a html document inside the <HEAD>, not >> *anywhere*. > > That's the recommended order, but it's not required. Not even in > 1982 when the spec was written. In fact, the placement in HEAD is so > that, with the original specifications, a server would be permitted > (though again, not required) to read the META tags within HEAD to form > and send its own headers via HTTP in conjunction with the plain-text > data from the document.
Though the w3c HTML/XHTML standards do show the META tag inside the head, hence the validation errors (http://validator.w3.org/#validate_by_input): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>page</title> </head> <meta name="revision" content="1" /> <body> </body> </html> Line 7, Column 35: document type does not allow element "meta" here. <meta name="revision" content="1" /> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="eng"> <head> <title>page</title> </head> <meta name="revision" content="1"> <body> </body> </html> Line 6, Column 33: document type does not allow element "META" here. <meta name="revision" content="1"> -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php