fixed post method

This commit is contained in:
Steffen Schröder 2014-06-27 01:11:47 +02:00
parent 29081181bf
commit 70e2c89d22

View File

@ -62,8 +62,9 @@ abstract class WebReader {
* @return Response * @return Response
*/ */
public static function postUrl($url, $content = null, callable $function = null) { public static function postUrl($url, $content = null, callable $function = null) {
$request = static::newRequest($url) $request = static::newRequest($url);
->set(CURLOPT_POST, true); // post method $request->getOptions()
->set(CURLOPT_POST, true); // post method
if ($content) { if ($content) {
$request->set(CURLOPT_POSTFIELDS, $content); // post content field $request->set(CURLOPT_POSTFIELDS, $content); // post content field
} }