From 70e2c89d225af4fef885db1416720c14c9c2908a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 27 Jun 2014 01:11:47 +0200 Subject: [PATCH] fixed post method --- application/core/Utils/WebReader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Utils/WebReader.php b/application/core/Utils/WebReader.php index 4d601c80..e89b704c 100644 --- a/application/core/Utils/WebReader.php +++ b/application/core/Utils/WebReader.php @@ -62,8 +62,9 @@ abstract class WebReader { * @return Response */ public static function postUrl($url, $content = null, callable $function = null) { - $request = static::newRequest($url) - ->set(CURLOPT_POST, true); // post method + $request = static::newRequest($url); + $request->getOptions() + ->set(CURLOPT_POST, true); // post method if ($content) { $request->set(CURLOPT_POSTFIELDS, $content); // post content field }