in reply to REST::Client POST error
This
Makes me think it is not expecting json encoded body but a normal http format.Content-Type: application/x-www-form-urlencoded grant=client_credentials&partner={partner}&client={client}&secret={sec +ret}
im willing to bet the substr from 1 is to get rid of a leading ?my @body_list = (grant => 'client_credentials', partner => ‘dfjkdjfdkdjkdkdjfdk’, client => 'dkfjdlfjdlfkjlj', client => 'dfkljflsfjlajflafjlsdkfjdskl=', # ne +ed encoding that is = will be %3D ); my $bodyData=substr($restClient->buildQuery(\@body_list),1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REST::Client POST error
by sannag (Sexton) on Aug 31, 2017 at 13:53 UTC |