What it does
HttpHostSet sets Host on a HTTP object. It takes connectionID (an integer), host (a string) and secure (an integer), and answers an integer. That is the first of 2 forms. connectionID is the id of a Connection object, obtained elsewhere in the HTTP family.
Syntax
1
HttpHostSet(connectionID integer, host string, secure integer) → integer2
HttpHostSet(connectionID integer, host string, secure integer, user string, password string) → integerParameters
| Name | Type | In forms |
|---|---|---|
| connectionID | integer | all |
| host | string | all |
| secure | integer | all |
| user | string | 2 |
| password | string | 2 |
Every form returns
integer
Example · generated
Form 1, the short one
connection = CreateHttpConnection()DO Print(HttpHostSet(connection, "value", 1)) Sync()LOOPForm 2, with every argument
connection = CreateHttpConnection()DO Print(HttpHostSet(connection, "value", 1, "value", "value")) Sync()LOOPCreateHttpConnection is there to give the call something to act on; HttpHostSet is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.