property Host: string;

 

Description

Get or set the Host header value to use in an HTTP request independent from the request URI.

The Host property can be used to set the Host header value to use in an HTTP request independent from the request URI. The Host property can consist of a hostname and an optional port number. A Host header without port information implies the default port for the service requested (port 80 for an HTTP URL, for example).

The format for specifying a host and port must follow the rules in section 14.23 of RFC2616 published by the IETF. An example complying with these requirements that specifies a port of 8080 would be the following value for the Host property: 'www.host.com:8080'.

If the Host property is not set, then the Host header value to use in an HTTP request is based on the request URI.

 

See also

Headers

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support