Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   Hypertext transfer (HTTP)
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Internet connectivity
 
File transfer (FTP)
Hypertext transfer (HTTP)
IMAP library
MIME and RFC822
POP3 email
Simple Mail Transfer Protocol (SMTP)
TCP/IP connections
Hypertext transfer (HTTP)

These functions allow access to HTTP sites.

Use the following code in your script to load the library:

  LOADLIB "wh::internet/http.whlib";

Public Functions and Macros

AddVariableToUrl Rewrite an URL to add a variable
CloseHTTPServer This function will close the connection to the http server
DecodeHTTPAuthenticationHeader Reads the authentication parameters for http digest authentication headers
DeleteVariableFromUrl Rewrite an URL to remove a variable
EncodeDigestAuthorizationHeader Constructs a digest authorization header (qop=auth, algorithm=md5)
FormatHttpDateTime Formats a datetime in the HTTP required format
FormatISO8601DateTime Formats a datetime in the ISO 8601 format
GetHTTPPage This function will get a url from the webserver
GetHTTPPageHeaders This function will get the headers for a url, but not its content, from the webserver
GetVariableFromUrl Get the value of a variable from a URL
IsAbsoluteUrl Is this URL absolute ?
IsValidPlainHTTPURL Test whether an URL is a valid HTTP url
MakeRelativeLinkFromURL Convert an absolute URL to a relative one, if at all possible
OpenHTTPServer This function will try to open a connection to an http server
OpenHTTPServerOnSocket This function will try to open an HTTP connection on a connected TCP socket
OpenSecureHTTPServer This function will try to open a secure (SSL) connection to an http server
PostHTTPPage This function will get a url from the webserver
PostHTTPPageMultipart This function will get a page from the webserver, and post data using the form/multi-part format
ReplaceVariableInUrl Rewrite an URL to replace an existing variable
ResolveToAbsoluteURL Rewrite an URL to make it absolute
SendHTTPRequest This function will send a formatted http header to a webserver
SetHTTPAuthentication SetHTTPAuthentication can be used to set a user/passwd when authentication is required
 
Top To top of page