|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > HTP. - Command > HTP. - General HTTP Operations |
SPR Script Language
HTP-General Overview
Overview of general HTTP operations in the HTP-Library.
Intention
The HTP-General chapter covers commands for performing general HTTP operations within the HTP-Library. These commands handle configuration, request management, and utility functions for HTTP interactions in SPR scripts. They are designed to facilitate robust HTTP communication, independent of the MCP (Multi-Client Protocol) server operations.
Subfolders and Commands
Configuration - Commands for setting up the HTTP environment (timeouts, headers, proxy).
• HTP.Clear - Clear the last error state, optionally clearing history.
• HTP.ConvCont - Convert response content based on Content-Type (simplify).
• HTP.SetDbg - Switch Debug for Connection on.
• HTP.SetHdr - Construct header from Parameters.
• HTP.SetProxy - Set the proxy server name and bypass list.
• HTP.SetRcVTO - Set the receive timeout value in milliseconds.
• HTP.SetSndTO - Set the DNS resolve timeout value in milliseconds.
• HTP.SetTO - Set the overall timeout value in milliseconds.
Request-Management - Commands for preparing, executing, and inspecting HTTP requests.
• HTP.GetErr - Return the last error message as text.
• HTP.GetReq - Normalize and return the HTTP request type.
• HTP.GetUA - Return the User-Agent string for a given index.
• HTP.InitHdr - Initialize HTP headers with API key and content type.
• HTP.Request - Perform a full HTTP request with all parameters.
• HTP.ReqShort - Perform a simplified HTTP request using static defaults.
Utility - Helper functions for HTTP operations (string conversion, proxy toggling).
• HTP.TOUFS - Convert String to UTF8.
• HTP.UseProxy - Enable or disable proxy usage.
See also: