SSO Post request

(Salvitorius Grave) #1

According to what i’m reading i need to take the code from the callback request and create another post request to get an access token.


Authorization: Basic bG9…ZXQ=
Content-Type: application/x-www-form-urlencoded


I know i can use CURL in php to make a post request to an outside URL but not sure how to include the header information. Can someone point me in the right direction?

(Blacksmoke16) #2

In PHP using curl:

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'HEADER_1: value',
    'HEADER_2: value'

(Salvitorius Grave) #3


(system) #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.