Argument | Description |
as_url | String. The URL for the HTTP Request |
as_headers | String. Optional HTTP headers you would like to supply with the request |
as_method | String. The HTTP method for the request. Some valid values are "GET", "POST", "PUT", "DELETE" and "HEAD" |
as_data | String. Optional data you would like to pass as part of the HTTP request |
ai_type | Integer . Specifies the specific control to use for making the request. Valid values are 0, 1, 2, 3, 5, 6, 7, and 9. See Usage below |
al_timeout | Long. The timeout for the request in milliseconds. Unlike the ph_geturl1 function, ALL valid ai_type values will use milliseconds |
ai_ignoresslcert | Integer. Specifies whether to ignore SSL certificate errors or not. If 0, then SSL certificate errors are NOT ignored. A value of 1 (or any other value) means SSL certificate errors are ignored. Only supported when the ai_type value is 6, 7, or 9 |
The as_headers parameter allows you to specify additional HTTP headers that are not included by default such as "Content-Type", "Cache-Control", "Pragma", etc. For any headers you wish to specify, you must have the header followed by a ":" followed by a single space followed by the header value and then terminated with either a carriage return line feed or just a line feed. So if you wish to specify a content-type and content-length header, it would look like this:
"Content-Type: application/x-www-form-urlencoded~r~nContent-Length: 2231~r~n"
The as_data parameter is where you would place the "body" of the HTTP request such as the data to be sent with a "POST" method.
The ai_type parameter specifies the specific internal control/method used to make the HTTP request. Valid values are: