diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:16:43 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:16:43 -0500 |
commit | 45e0fc6802b360710becf7ddaf6aed6a9de1d876 (patch) | |
tree | 7299b3c9ad3279929a99a12cfffe485164b73c88 /include/network.php | |
parent | e3095ce6b2c76f13a852f0ec5f782d71101a7c6a (diff) | |
download | volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.tar.gz volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.tar.bz2 volse-hubzilla-45e0fc6802b360710becf7ddaf6aed6a9de1d876.zip |
Successful OAuth2 sequence demonstrated with the test vehicle, including an authenticated API call using an access_token.
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php index f8cb68613..9768a2544 100644 --- a/include/network.php +++ b/include/network.php @@ -88,6 +88,8 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { $instance_headers[] = 'Cookie: PHPSESSID=' . session_id(); } } + logger('headers: ' . json_encode($instance_headers, JSON_PRETTY_PRINT)); + if($instance_headers) @curl_setopt($ch, CURLOPT_HTTPHEADER, $instance_headers); @@ -143,7 +145,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { $base = $s; $curl_info = @curl_getinfo($ch); $http_code = $curl_info['http_code']; - //logger('fetch_url:' . $http_code . ' data: ' . $s); + logger('fetch_url:' . $http_code . ' data: ' . $s); $header = ''; // Pull out multiple headers, e.g. proxy and continuation headers |