Hey Anyone know how I can pass multiple headers? ...
# help
n
Hey Anyone know how I can pass multiple headers? Below works only for single header
Copy code
SELECT content::json->'headers'->>'Authorization' FROM http((
          'GET',
           'http://httpbin.org/headers',
           ARRAY[http_header('Authorization','Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9')],
           NULL,
           NULL
        )::http_request)
n
Hello @NinjaNuur! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
If you add a second ,http_header(‘headtype’, ‘string’) to the array it does not work?
n
NinjaNuur (2022-05-19)
n
it wasnt working and thats because I had a header value of uuid instead of string, thank you!
n
Thread was archived by @NinjaNuur. Anyone can send a message to unarchive it.