CMD_API_SHOW_DOMAINS = using current session [perl]

john_doe

New member
Joined
Feb 20, 2015
Messages
1
First of all hello everyone!

I have to write a plugin to my DA and I need domain list for currently logged user. If i try to do something like:

Code:
#!/usr/bin/perl
use LWP::Simple;

print get('http://my-domain:2222/CMD_API_SHOW_DOMAINS');

It show's me login dialog... Is it possible to use current session ($ENV{'SESSION_ID'} or $ENV{'SESSION_KEY'} or $ENV{'session'}) without need to log again?

I suppose that there should be an option to send correct cookie or something but I have to admint that have no idea how ;)

Is anyone able to help me?

here's image how it looks now
 
Back
Top