| PostHTTPPage |
| |
This function will get a url from the webserver |
| |
| Library |
 |
wh::internet/http.whlib |
| |
| Syntax |
 |
PUBLIC RECORD FUNCTION PostHTTPPage (INTEGER connectionid,STRING query,RECORD ARRAY variables) |
| |
| Parameters |
 |
| connectionid |
 |
Integer id of the connection (opened by OpenHTTPServer) |
 |
| query |
 |
String containing the url to post to (example /path/script.shtml) |
 |
| variables |
 |
Record array with variables to post |
| |
The record contains the following cells:
|
 |
|
| |
| Returns |
 |
Record containing the server response |
| |
The record contains the following cells:
| content |
 |
String with response (body) from the server |
 |
| 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 |
 |
|
| |