$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://apis.websitetoapk.com/pushadmin/api/v1/list_apps", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "content-type: application/x-www-form-urlencoded", "X-Api-Key: api-key-here", "X-Auth-Token: token-here" ), )); $response = curl_exec($curl); echo $response;