As a follow up, you mention the agent string, is there someplace that explains this string in some detail? I just want to understand what is important in that line to different servers.

It's a messy subject. Browsers announce themselves using a "User-Agent:" header in the HTTP request. This is visible to CGIs in the HTTP_USER_AGENT environment variable.

As browsers have developed, they've added capabilities (and have introduced and fixed bugs). There are incompatabilities in things like CSS (Cascading Style Sheet) support between different browsers and browser versions, and even some subtle differences Javascript support.

Some sites use the user-agent string to ensure that they emit the right DHTML/JavaScript from the server side. Also, various JavaScript libraries will include "browser detection" code to run on the client side, so that they can do the right magic stuff (or avoid trying to do the wrong magic stuff) in a browser. A limited number of sites use the user-agent string to be jerks, denying service to one browser type or another "just because."

What the user agent strings are and how to interpret them is scattered throughout the available literature. Try googling on "Javascript browser detect".


In reply to Re: Re: Re: Why don't I get a redirect by dws
in thread Why don't I get a redirect by jonjacobmoon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.