Skip to content

CURLOPT_HEADER NOT for send custom headers #13

@ewwink

Description

@ewwink

CURLOPT_HEADER TRUE to include the header in the output, so it not for sending custom headers. you can set it to false and remove the loop

foreach($output as $line)
 {
    if($line === false)
      {
        // there was no bearer token
      }else{
        $bearer_token = $line;
      }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions