Lasso Soft Inc. > Home

[ web_request->httpHost ]

Method

The [web_request->httpHost] method returns the Host HTTP header sent to the server by the client.

  • Syntax
web_request->httpHost
Examples
  • Beginner

Display the hostname for the server

The code below will display the Host HTTP header that the client sent to the server which should be the same as the hostname for the server. For the example below, assume the URL called was http://www.example.com/test.lasso

Code

web_request->httpHost

Result

www.example.com

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft