You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

what is the correct headers to complete my cURL request

Accepted answer
32
Views
7
Comments
edited Jun 8, 2022 10:32AM in Agent Desktop 7 comments

Hoping someone can help. I have never used cURL in oracle before, and i think i just need a pointer

I am running this script from the file manager

i get the session

----

$account = AgentAuthenticator::authenticateCookieOrCredentials($userName, $password);

/********************* end agent authentication ***************************/


//Set up variables for use in Ajax calls

$acct_id = $account['acct_id'];

$session = $account['session_id'];

----

and i build the options up

----

    curl_setopt_array($curl, array(

        CURLOPT_VERBOSE => true,

        CURLOPT_URL => 'https://tradsuploc.custhelp.com/services/rest/connect/v1.4/analyticsReportResults/',

        CURLOPT_RETURNTRANSFER => true,

        CURLOPT_ENCODING => '',

        CURLOPT_MAXREDIRS => 10,

        CURLOPT_TIMEOUT => 30,

        CURLOPT_FOLLOWLOCATION => true,

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!