4D v13.4HTTP Get |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
HTTP Get
HTTP Get
The HTTP Get command sends an HTTP GET request directly to a specific URL and processes the HTTP server response. Pass the URL where you want the request sent in the url parameter. The syntax to use is: http://[{user}:[{password}]@]host[:{port}][/{path}][?{queryString}] For example, you can pass the following strings: http://www.myserver.com (*) During HTTPS requests, authority of the certificate is not checked. After command execution, the response parameter receives the result of the request returned by the server. This result corresponds to the body of the response, with no headers.
If you pass a BLOB, it contains the text, picture or any type of contents (.wav, .zip, etc.) returned by the server. You must then manage the recovery of these contents (headers are not included in the BLOB). If the type of data returned by the server does not match the variable type, it is returned empty. In headerNames and headerValues, you pass arrays containing the names and values of the request headers. The * parameter enables the keep-alive mechanism for the server connection. By default, if this parameter is omitted, keep-alive is not enabled. The command returns a standard HTTP status code (200=OK and so on) as returned by the server. The list of HTTP status codes is provided in RFC 2616. Retrieval of the 4D logo on the 4D Web site: C_TEXT(URLPic_t) Retrieval of an RFC: C_TEXT(URLText_t) Retrieval of a video: C_BLOB(vBlob) |
PROPERTIES
Product: 4D
INDEX HISTORY
SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||