aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-20 13:07:29 -0400
committerAndrew Manning <tamanning@zoho.com>2016-06-20 13:07:29 -0400
commit8cd9a1e4fc28d92d270e3f154c144123dca9044a (patch)
tree20e9d45895fdea5a1af3f4066a95c526e7476a20 /include/network.php
parent20b4fc919871433df6111cbb8b3508fd1693123b (diff)
parentcc09f9a7a5f799a0811ba83799c0a3ac6598c476 (diff)
downloadvolse-hubzilla-8cd9a1e4fc28d92d270e3f154c144123dca9044a.tar.gz
volse-hubzilla-8cd9a1e4fc28d92d270e3f154c144123dca9044a.tar.bz2
volse-hubzilla-8cd9a1e4fc28d92d270e3f154c144123dca9044a.zip
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index d922799b6..062f2c2bf 100644
--- a/include/network.php
+++ b/include/network.php
@@ -189,6 +189,10 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
*/
function z_post_url($url,$params, $redirects = 0, $opts = array()) {
+// logger('url: ' . $url);
+// logger('params: ' . print_r($params,true));
+// logger('opts: ' . print_r($opts,true));
+
$ret = array('return_code' => 0, 'success' => false, 'header' => "", 'body' => "");
$ch = curl_init($url);
@@ -214,14 +218,15 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
if(x($opts,'headers')) {
@curl_setopt($ch, CURLOPT_HTTPHEADER, $opts['headers']);
-logger('headers: ' . print_r($opts['headers'],true) . 'redir: ' . $redirects);
}
if(x($opts,'nobody'))
@curl_setopt($ch, CURLOPT_NOBODY, $opts['nobody']);
- if(x($opts,'custom'))
+ if(x($opts,'custom')) {
@curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $opts['custom']);
+ @curl_setopt($ch, CURLOPT_POST,0);
+ }
if(x($opts,'timeout') && intval($opts['timeout'])) {