HTTP request POST wirh multiple headers

Hi

How do i post more than one header in a http request card?
I nead both Content-Type: application/json and a bearer:“Password”

/Rikard

I would suggest to use JSON:
grafik
But I haven’t tested yet.

with just a comma(,) it seems to work.

But then it complaints about the body missing. The body is just in the format of

{ viewer { homes { currentSubscription{ priceInfo{ today { total energy tax startsAt } tomorrow { total energy tax startsAt }}}}}}

But it maybe needs to be in an array-form?
this is the complete working setup in php

$json = json_encode(array(‘query’ => ‘{ viewer { homes { currentSubscription{ priceInfo{ today { total energy tax startsAt } tomorrow { total energy tax startsAt }}}}}}’));

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘https://api.tibber.com/v1-beta/gql’);
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(‘Content-Type: application/json’,
'Authorization: Bearer XXXXXXXXXXX));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);