I am sending a PERL POST Request
over HTTPS
. During sending the request i need to send two things in content one is an authorization token and other is the command need to be executed on the server side.
What should be the approach to send these two things as the content?
Should it be:-
$request->content($token)
$request->content($command)
OR should it be
my @content =($token,$command)
$request->content(\@content)
The module which i am using is LWP::UserAgent
and in that i will be creating a HTTP::Request
type object my $request = HTTP::Request->new(POST => "<url>");
and in
this object i am sending content.