| GetHTTPPage |
| |
This function will get a url from the webserver |
| |
| Library |
 |
wh::internet/http.whlib |
| |
| Syntax |
 |
PUBLIC RECORD FUNCTION GetHTTPPage (INTEGER connectionid,STRING query) |
| |
| Parameters |
 |
| connectionid |
 |
Integer id of the connection (opened by OpenHTTPServer) |
 |
| query |
 |
String containing the query to load (example /path/script.shtml?a=b&d=c) |
 |
|
| |
| Returns |
 |
Record containing the page |
| |
The record contains the following cells:
| content |
 |
Contents of the url retrieved |
 |
| protocol |
 |
String of the protocol (example "HTTP/1.1") |
 |
| code |
 |
Integer of the return code |
 |
| headers |
 |
A record array of (field,value) strings containing the headers received with this request |
 |
|
| |