Re: "Error 400" error on some servers for "security" reasons
Paul Slootman <[email protected]> Sat, 9 Sep 2006 10:55:45 +0200
| Newsgroups | gmane.network.wwwoffle.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri 08 Sep 2006, Max Kirillov wrote: > Go, for example, at http://psi-im.org/wiki/. You must see > the "http error 400" page: I used ethereal to check the request sent. This is with wwwoffle: GET /wiki/ HTTP/1.1 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 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: nl,en;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Host: psi-im.org Connection: close Accept-Encoding: x-gzip; q=1.0, gzip; q=1.0, x-deflate; q=0.9, deflate; q=0.9, identity; q=0.1 TE: chunked This is without wwwoffle: GET /wiki/ HTTP/1.1 Host: psi-im.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 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: nl,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 and rearranged to follow the wwwoffle order of headers, to make it easier to compare: GET /wiki/ HTTP/1.1 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 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: nl,en;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Host: psi-im.org Connection: keep-alive Accept-Encoding: gzip,deflate The differences are: Connection: close / keep-alive TE: (none) / chunked A quick manual telnet check shows that the site objects to the TE: chunked line. Pretty pathetic if you ask me. (i.e. the site (or the site's admins) suck badly). Paul Slootman