Re: Lots of noise about user agent strings



On Jun 1, 10:19 pm, "Richard Cornford" <Rich...@xxxxxxxxxxxxxxxxxxx>
wrote:
VK wrote:
On Jun 1, 12:20 pm, Jorge wrote:
On May 29, 4:22 am, Peter Michaux wrote:

If you were a system administrator and you wanted to send
gzipped JavaScript files to save bandwidth, how would you
determine which browsers could accept gzipped files and
which could not?

Looking at the Accept-Encoding header.

In the context of the discussion I dare to question what
principal difference one sees between altering over say
(Gecko) about:config User-Agent string and altering
network.http.accept-encoding string? If one doesn't have
a trust to one chunk of info send by agent, why so
much trust to another chunk sent in the same request? ;-)

Who is proposing not trussing the User Agent header? The HTTP
specification defines it as an arbitrary sequence of characters that
does not even need to be consistent over time, and so as being something
that should not be treated as a source of information.

Are you positive about it?

Hypertext Transfer Protocol - HTTP/1.1

....
14.43 User-Agent
The User-Agent request-header field contains information about the
user agent originating the request. This is for statistical purposes,
the tracing of protocol violations, and automated recognition of user
agents for the sake of tailoring responses to avoid particular user
agent limitations. User agents SHOULD include this field with
requests. The field can contain multiple product tokens (section 3.8)
and comments identifying the agent and any subproducts which form a
significant part of the user agent. By convention, the product tokens
are listed in order of their significance for identifying the
application.
....

.



Relevant Pages

  • Re: Lots of noise about user agent strings
    ... gzipped JavaScript files to save bandwidth, ... about:config User-Agent string and altering ... Who is proposing not trussing the User Agent header? ... user agent originating the request. ...
    (comp.lang.javascript)
  • Re: WebControl/Cache-Control question
    ... the user agent, provided the user agent understands the header. ... The only thing I'd check is that you're setting this on the correct HTTP re- ... where the browser makes a second request that's separate to fetch the image. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: HttpWebRequest headers problem
    ... > I'm using a c# app to download zipped XML data from a 3rd party. ... How do I add the correct request headers here? ... HttpWebRequest.UserAgent to set the user agent. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CGI module redirect defaults to 302 -- why?
    ... The response to the request can be found under a different URI ... POST-activated script to redirect the user agent to a selected ... 303 seems to be designed *exactly* for redirecting the browser after a CGI program has run. ...
    (comp.lang.perl.misc)
  • Re: using openurl to log into Yahoo services
    ... > I'm trying to write a script to log into Yahoo! ... > a resutling 400 - Bad Request page. ... It is possible that the "challenge" field is created by yahoo's server ... perhaps it contains a hash of the user agent that sent the request. ...
    (comp.lang.python)