in reply to Getting values with help of curl
If you don't want to change the URL yourself, you could convert the curl invocation to Perl code (using, for example, curl2lwp, written by me):
#!perl use strict; use warnings; use HTTP::Tiny; my $ua = HTTP::Tiny->new(); my $res = $ua->request( 'GET' => 'https://url.../', { headers => { 'Accept' => '*/*', 'User-Agent' => 'curl/7.55.1', 'Authorization' => 'Basic YWRtaW46cGFzc3dvcmQ=' }, }, ); __END__ Created from curl command line curl -k --silent -u admin:password https://url...
Simply appending &active=true to the URL might also work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting values with help of curl
by PerlMonkey22 (Novice) on Sep 01, 2022 at 11:28 UTC | |
by Corion (Patriarch) on Sep 01, 2022 at 11:33 UTC | |
by PerlMonkey22 (Novice) on Sep 01, 2022 at 12:01 UTC | |
by choroba (Cardinal) on Sep 01, 2022 at 14:18 UTC | |
by PerlMonkey22 (Novice) on Sep 07, 2022 at 09:50 UTC | |
|