fixed post method
This commit is contained in:
parent
03bd3caa65
commit
bb94b7712f
@ -66,7 +66,8 @@ abstract class WebReader {
|
|||||||
$request->getOptions()
|
$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->getOptions()
|
||||||
|
->set(CURLOPT_POSTFIELDS, $content); // post content field
|
||||||
}
|
}
|
||||||
$response = $request->send();
|
$response = $request->send();
|
||||||
if (!is_null($function)) {
|
if (!is_null($function)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user