fixed post method

This commit is contained in:
Steffen Schröder 2014-06-27 01:18:18 +02:00
parent 03bd3caa65
commit bb94b7712f

View File

@ -66,7 +66,8 @@ abstract class WebReader {
$request->getOptions()
->set(CURLOPT_POST, true); // post method
if ($content) {
$request->set(CURLOPT_POSTFIELDS, $content); // post content field
$request->getOptions()
->set(CURLOPT_POSTFIELDS, $content); // post content field
}
$response = $request->send();
if (!is_null($function)) {