diff options
author | blsaws <bryan.sullivan@att.com> | 2016-06-14 15:23:34 -0700 |
---|---|---|
committer | blsaws <bryan.sullivan@att.com> | 2016-06-14 15:23:34 -0700 |
commit | 6f686820626472268a2abca9d507d7d79a4229e9 (patch) | |
tree | fb387b219aa774bcfffb747210ecdf7218721f44 /components | |
parent | b45df4a6813026511c05491904f18908d1e4490a (diff) |
Correct Curl header command
JIRA: COPPER-4
Change-Id: I14e907cb9e8f3dc20bbaaa9e7be080c66d98be29
Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'components')
-rw-r--r-- | components/congress/test-webapp/www/proxy/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/congress/test-webapp/www/proxy/index.php b/components/congress/test-webapp/www/proxy/index.php index 81234ba..af86f1a 100644 --- a/components/congress/test-webapp/www/proxy/index.php +++ b/components/congress/test-webapp/www/proxy/index.php @@ -51,14 +51,14 @@ $url = "http://CONGRESS_HOST:1789".$_GET['~url']; $curlop = curl_init(); curl_setopt($curlop, CURLOPT_URL, $url); curl_setopt($curlop, CURLOPT_CUSTOMREQUEST, $method); -curl_setopt($curlop, CURLOPT_HEADER, array('X-Auth-Token: '.$token.'')); +curl_setopt($curlop, CURLOPT_HTTPHEADER, array("X-Auth-Token: '.$token'")); //curl_setopt($curlop, CURLINFO_HEADER_OUT, 0); curl_setopt($curlop, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlop, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curlop, CURLINFO_HEADER_OUT, true); if ($method == "POST") { - curl_setopt($curlop, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); + curl_setopt($curlop, CURLOPT_HTTPHEADER, array("Content-Type: application/json","X-Auth-Token: '.$token'")); $body = file_get_contents('php://input'); curl_setopt($curlop, CURLOPT_POSTFIELDS, $body); } |