On Thu, 2008-04-17 at 11:24 +0100, Ford, Mike wrote: > On 17 April 2008 10:05, Robert Cummings advised: > > > On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: > >> > >> Thanks Robert, > >> > >> I have the following headers: > >> > >> > >> http://fr.xxxx.com/student/themes/english/locker_room/student.html > >> > >> GET /student/themes/english/locker_room/student.html? HTTP/1.1 Host: > >> fr.xxxx.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; > en-US; > >> rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 > >> Accept: > >> > > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 > > ,text/plain;q= > >> 0.8,image/png,*/*;q=0.5 > >> Accept-Language: en-us,en;q=0.5 > >> Accept-Encoding: gzip,deflate > >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > >> Keep-Alive: 300 > >> Connection: keep-alive > >> Referer: > > http://fr.xxxx.com/student/themes/english/locker_room/student.html > >> Cookie: PHPSESSID=818678404c170c8e4f5d237c1d0280a8 > >> If-Modified-Since: Sat, 17 Nov 2007 11:40:26 GMT > >> If-None-Match: "6b97e-a9d-619b9e80" > >> Cache-Control: max-age=0 > >> > >> HTTP/1.x 304 Not Modified > >> Date: Thu, 17 Apr 2008 08:31:32 GMT > >> Server: Apache/2.0.55 (Unix) PHP/5.1.2 > >> Connection: Keep-Alive > >> Keep-Alive: timeout=15, max=200 > >> Etag: "6b97e-a9d-619b9e80" > >> ----------------------------- > >> > >> > >> Now I see that the headers have: > >> > >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > >> > >> Which to me seems like it is sending both ISO-8859-1 and UTF-8? > > > > No, that's what kind of content the server is willing to accept from > > various sources such as POST. > > Er, no, that's what kind of content the browser is prepared to accept > back from the server -- the headers starting from the GET line are what > the browser sends to the server as part of the request. The lines > starting at the HTTP/1.x line are what the server returns. Good catch, I must have crossed wires somewhere in my head and thought about the accept-charset attribute for forms which *is* what the server is willing to accept when processing the form. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php