SSO Post request

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.

POST https://login.eveonline.com/oauth/token HTTP/1.1

Authorization: Basic bG9…ZXQ=
Content-Type: application/x-www-form-urlencoded
Host: login.eveonline.com

grant_type=authorization_code&code=gEyuYF_rf…ofM0

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?

In PHP using curl:

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

Thanks!

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