User Tools

Site Tools


reference:spamrules_statement_httpget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
reference:spamrules_statement_httpget [2011/08/24 12:55] simonreference:spamrules_statement_httpget [2011/08/24 14:59] simon
Line 9: Line 9:
   * The first line of the headers variable will contain the HTTP result code, if present   * 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   * If VPOP3 cannot connect to the web server or cannot resolve the name of the website, the headers may be empty
 +  * Only <nowiki>http://</nowiki> connections are supported - for <nowiki>https://</nowiki> connections, use [[spamrules_statement_winhttpget|WinHTTPGet]]
   * **HTTPGet** is only suitable for retrieving text web pages   * **HTTPGet** is only suitable for retrieving text web pages
 +  * VPOP3 has more control over **HTTPGet** than it does over **WinHTTPGet**
  
  
 =====Example===== =====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+The following example will retrieve the webpage <nowiki>"http://www.pscs.co.uk"</nowiki>, return the HTTP headers into the ${hdrs} variable and return the content into the ${content} variable
 <code> <code>
 HTTPGet "http://www.pscs.co.uk" hdrs content HTTPGet "http://www.pscs.co.uk" hdrs content
 </code> </code>
reference/spamrules_statement_httpget.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1