User Tools

Site Tools


reference:spamrules_statement_httpget

Spam Filter Rules: HTTPGet

Statement HTTPGet
Version 2.3.7+
Purpose Enables the script to retrieve a web page

The HTTPGet statement requires a url, headers variable name and content variable name, in the format

HTTPGet <url> <headers variable name> <content 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
  • Only http:// connections are supported - for https:// connections, use WinHTTPGet
  • HTTPGet is only suitable for retrieving text web pages
  • VPOP3 has more control over HTTPGet than it does over WinHTTPGet

Example

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

HTTPGet "http://www.pscs.co.uk" hdrs content
reference/spamrules_statement_httpget.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1