in reply to Brackets in LWP Post
Further arguments can be given to initialize the headers of the request. These are given as separate name/value pairs.(from LWP::UserAgent)
You are POSTing with the wrong headers: you are giving a meaningless hashref whereas it should be dereferenced to provide name/value pairs. (that said, I can not say if all else is OK)
return $ua->post( $self->{'auth'}->api_url_base . 'shares', Content => encode_json($json), %$header, #<<<<< );
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Brackets in LWP Post
by Bod (Parson) on May 11, 2021 at 18:42 UTC | |
by bliako (Abbot) on May 11, 2021 at 20:24 UTC |