BernieC has asked for the wisdom of the Perl Monks concerning the following question:
I know this is a dumb question but I'm lost in a maze of twisty passages going back and forth between LWP::UserAgent and HTTP::Request::Common. I have a very simple question. I need to send a POST with the body being JSON data and I understand {I think} that to make that play nice with the server I should have a
"content-type: application/json" header ... it should be trivial but I can't figure out where to stick that information in the $ua->POST() call. I must be missing something obvious.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: content type in LWP::UserAgent
by choroba (Cardinal) on Nov 16, 2022 at 23:51 UTC | |
by stevieb (Canon) on Nov 17, 2022 at 15:33 UTC |
Back to
Seekers of Perl Wisdom