Functions to send and receive data over an HTTP connection using POL's internal webserver. Scripts in /scripts/www are considered at the top level directory. I.e. http://192.168.0.5:8088/online.ecl Scripts stored in packages can be retrieved by accessing /pkg/packagename/script.ecl I.e. http://127.0.0.1:8088/pkg/guild/guilds.ecl 02/06/2023 WriteStatus( code, reason := "" ) Writes the status code provided. If no reason provided, one will be calculated from the code (if possible). This can only used once before WriteHeader(), WriteHtml(), and WriteHtmlRaw(). 1 on success "Socket is disconnected" "Cannot send status after WriteStatus, WriteHeader, WriteHtml, or WriteHtmlRaw" "Invalid parameter type" WriteHeader( name, value ) Writes the header provided. This function can be used to change the response's Content-Type from the default "text/html". This can only used before WriteHtml() and WriteHtmlRaw(). 1 on success "Socket is disconnected" "Cannot send headers after WriteHtml or WriteHtmlRaw" "Invalid parameter type" WriteHtml( html ) Writes a line of HTML to the "virtual webpage" that will be sent to the connecting browser and appends a new-line. 1 always "Socket is disconnected" "Invalid parameter type" WriteHtmlRaw( html ) Writes a line of HTML to the "virtual webpage" that will be sent to the connecting browser, does NOT append a new-line. 1 always "Socket is disconnected" "Invalid parameter type" QueryParam( param ) Query's the accessed URL for any embedded parameters. (see your favorite HTML docs for parameter embedding! :) ) Example: http://pol.server.com:8080/querytest.ecl?par=wibble&name= QueryParam( "par" ) ---> "wibble" QueryParam( "name" ) --> "" QueryParam( "heat" ) --> 0 [integer] String value of the embedded param, or 0 if not found. "Invalid parameter type" QueryIP() returns the IP address of the connecting browser String IP address, i.e. "192.168.0.5"