reference:spamrules_statement_httpgetmd5

Spam Filter Rules: HTTPGetMD5

Statement HTTPGetMD5
Version 2.3.7+
Purpose Enables the script to retrieve a web page, returning an MD5 hash of its contents in hex encoded form

The HTTPGetMD5 statement requires a url, headers variable name and MD5 hash variable name, in the format

HTTPGetMD5 <url> <headers variable name> <MD5 hash variable name>
  • The first line of the headers variable will contain the HTTP result code, if present
  • If VPOP3 cannot connect to the web server or cannot resolve the name of the website, the headers may be empty

Example

The following example will retrieve the webpage "http://www.pscs.co.uk", return the HTTP headers into the ${hdrs} variable and return MD5 hash of the contents into the ${md5var} variable

HTTPGetMD5 "http://www.pscs.co.uk" hdrs md5var
reference/spamrules_statement_httpgetmd5.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1