[TYPO3-dev] Spamfilter-Service
Dmitry Dulepov [typo3]
dmitry at typo3.org
Wed Jul 16 10:19:21 CEST 2008
Hi!
Peter Guhl wrote:
> OK, here's a quick sample code about how to use it. Should be possible
> to be put into any PHP-Code:
>
> <?php
> // First test: Send a http-Request to the spfgblib-API
>
> $request = new HttpRequest;
>
> $request->__construct('http://www.chabis.ch/helpers/api/index.php',HttpRequest::METH_POST);
>
>
> $request->addPostFields(array('userid'=>'tester','sent'=>'spamform','test'=>'TEST','text'=>'great
> site!'));
Not a TYPO3 way :) TYPO3 recommends using t3lib_div::getURL() but it limits you to GET requests only.
--
Dmitry Dulepov
TYPO3 Core team
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/
More information about the TYPO3-dev
mailing list