User Tools

Site Tools


Spam Filter Rules: WinHTTPGet

Statement WinHTTPGet
Version 2.4.9+
Purpose Enables the script to retrieve a web page using the WinINET functionality

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

WinHTTPGet <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
  • http:// and https:// connections are supported
  • WinHTTPGet is only suitable for retrieving text web pages
  • VPOP3 has less control over WinHTTPGet than it does over HTTPGet


The following example will retrieve the webpage "", return the HTTP headers into the ${hdrs} variable and return the content into the ${content} variable

WinHTTPGet "" hdrs content
reference/spamrules_statement_winhttpget.txt · Last modified: 2018/11/14 10:45 (external edit)