in reply to Re: Brackets in LWP Post
in thread Brackets in LWP Post

You are POSTing with the wrong headers:

Fabulous!
You are spot on...dereferencing $header makes it work as it should :) Many, many thanks.

Bizarrely, the hashref worked to authorise a GET call to a different endpoint to fetch information about the current user. I used that to check that the headers were being passed correctly. Strange how it works for a GET but not a POST.

Replies are listed 'Best First'.
Re^3: Brackets in LWP Post
by bliako (Abbot) on May 11, 2021 at 20:24 UTC
    Bizarrely, the hashref worked to authorise a GET call

    that's strange because LWP::UserAgent says that they all use the same notation to pass the headers: Additional headers and content options are the same as for the "get" in LWP::UserAgent method.

    anyway, cool project!