Mailing List Archive

[Bug 2684] Add HTTP lookup method (extend json lookup to accept URLs ?)
https://bugs.exim.org/show_bug.cgi?id=2684

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|bug |wishlist

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2684] Add HTTP lookup method (extend json lookup to accept URLs ?) [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2684

--- Comment #1 from Lena <Lena@lena.kiev.ua> ---
You can fetch via HTTP using ${readsocket
An example:

condition = ${if or{\
{bool{${lookup dnsdb{a=$sender_address_domain}{0}{1}}}}\
{!match{${readsocket{inet:$sender_address_domain:80}\
{GET / HTTP/1.0\r\nHost: $sender_address_domain\r\n\r\n}\
{4s:shutdown=no}{ }{socket failure}}}{UCEPROTECT-Network}}\
}}

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##