[Posting] Re: Planetscentral API
From:Quapla
Thread:Planetscentral API
Forum:Bugs
In reply to:Re: Planetscentral API
Date:Sun, 2023-02-05 10:50 GMT

True - and maybe because of lack of knowledge :embarassed: Again thank you - i will give that a try.

I expanded the functionality - shall load it to github? Why did HTTPS not work? Problems on the server? I tried this - but it worked only with HTTP not HTTPS...

my $ua = LWP::UserAgent->new;
#$ua->ssl_opts(verify_hostname => 0); #Verify hostname ausschalten, falls nötig
my $content = "action=whoami&api_user=$user&api_password=$pass";
my $reply = $ua->post("https://$host/api/user.cgi", Content => $content);
This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.