ENUM URL_Properties
  URL_Protocol
  URL_HostName
  URL_Port
  URL_URI
  URL_QueryString
  URL_Fragment
  Count
END ENUM

ENUM HTTP_Methods
  HTTP_HEAD
  HTTP_GET
  HTTP_POST
  HTTP_PUT
  HTTP_DELETE
  Count
END ENUM

DECLARE FUNCTION SplitUrl(FullUrl AS STRING, UrlPart AS URL_Properties) AS STRING
DECLARE SUB HTTP_Open(Method AS STRING, Url AS STRING)
DECLARE SUB HTTP_Send(RequestBody AS STRING = "")
DECLARE FUNCTION HTTP_GetResponse() AS STRING
DECLARE SUB HTTP_Clean()

COMMON SHARED LastError AS ULONG
