HTTP module
This module contains low-level functions for constructing and sending HTTP and HTTPS requests. If you are using HTTPS, then you should read the documentation for the TLS module about SSL certificates.
Data types
- HTTP::HTTPURL - URL information
- HTTP::HTTPversion - The HTTP version
Exceptions
- BadUsername - Bad username for HTTP authentication
- NotAURL - Not a URL
Functions
- Pair<String, String> basicAuthHeader(String user,String pwd) - Create a Basic authentication header
- Pair<String, String> cookieHeader([Pair<String, String> ] cookies) - Generate a cookie header
- String getURL(HTTPURL url,[Pair<String, String> ] headers=createArray(1),HTTPversion version=HTTP10,[String] certfiles=[]) - Retrieve a URL by HTTP.
- Void getURL(NetHandle h,HTTPURL url,[Pair<String, String> ] headers=createArray(1),HTTPversion version=HTTP10) - Retrieve a URL by HTTP using an existing connection.
- HTTPURL parseURL(String url) - Convert a String to a HTTP URL
- Void postURL(NetHandle h,String post,HTTPURL url,[Pair<String, String> ] headers=createArray(1),HTTPversion version=HTTP10) - Post data to a URL by HTTP using an existing connection.
- String postURL(String post,HTTPURL url,[Pair<String, String> ] headers=createArray(1),HTTPversion version=HTTP10,[String] certfiles=[]) - Post data to a URL by HTTP.