Skip to content

passing headers  #89

@strukturart

Description

@strukturart

Hello,

how can you send the header with the request?

$context_re = stream_context_create(array(
    'http' => array(
        'header'  => "Authorization: Basic " . base64_encode($user . ":" . $pass)
    )
));

$json = Items::fromFile($domain . "/exports/missions-published.json", ['debug' => true]);
print_r($json);

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