Difference between revisions of "THttpCli.Agent"

From Overbyte
Jump to navigation Jump to search
(Created page)
 
(grammar)
 
Line 6: Line 6:
  
 
When performing a request the HTTP client sends a user agent string to the server.  
 
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 and
+
With this the server knows which which kind of software (e.g. which Webbrowser) it communicates with and
can send back an answer tailored on this specific software or even version. A web server for instance
+
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
 
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.
 
properly displayed in those old browser versions. Some browsers offer the ability to modify this string.

Latest revision as of 14:05, 27 January 2019

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

Definition

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.

Description

Agent syntax usually is

agent name/agent version

How To / Examples