fixed post method
This commit is contained in:
parent
29081181bf
commit
70e2c89d22
@ -62,7 +62,8 @@ 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);
|
||||||
|
$request->getOptions()
|
||||||
->set(CURLOPT_POST, true); // post method
|
->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
|
||||||
|
Loading…
Reference in New Issue
Block a user