http - Best way to send content in PERL POST Request? -


i sending perl post request on https. during sending request need send 2 things in content 1 authorization token , other command need executed on server side.

what should approach send these 2 things content?

should be:-

$request->content($token)  $request->content($command) 

or should

my @content =($token,$command)  $request->content(\@content) 

the module using lwp::useragent , in creating http::request type object my $request = http::request->new(post => "<url>"); , in object sending content.

there single content (request body) post request. call of content replaces defined content. please have @ documentation lwp::useragent::post defines how send post data multiple values. also, might useful if understand how forms in html work, both on client (browser) , on server side. because if know server side expects in detail can create proper request.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -