Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl REST API Post script

by hippo (Chancellor)
on Feb 10, 2020 at 23:11 UTC ( #11112749=note: print w/replies, xml ) Need Help??


in reply to PERL REST API Post script

The IP works but the rest does not get parsed into the req for the content.
$req->content('{"data":{"Address": "$Address","User": "$user","Passwor +d": "$passcode","Domain":"","LockCode":""}}');

Single quotes don't interpolate. See Quote and Quote-like Operators in perlop for more info.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11112749]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-04-09 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (46 votes). Check out past polls.

    Notices?