From Overbyte
Jump to navigation Jump to search

Main page -> ICS components reference -> THttpCli -> Agent


Agent : String;

When performing a request the HTTP client sends a user agent string to the server. With this the server knows which which kind of software (e.g. which Webbrowser) it communicates with and can send back an answer tailored to this specific software or even version. A web server for instance could block old versions of Internet Explorer this way as he knows that the website concerned is not properly displayed in those old browser versions. Some browsers offer the ability to modify this string.

Example for such a string: Mozilla/4.0 where Mozilla refers to a Mozilla based Webbrowser (e.g. Firefox or Sea Monkey) and 4.0 would be the version. As of ICS 8.58 this is the default setting for the property.


Agent syntax usually is

agent name/agent version

How To / Examples