I'm not sure what "it" is. If you simply want to change the URL, you can do that in the Perl code. But I'm not sure what your URLs are, or where the active=true part plays any role.
I think it would help if you show us the two URLs you want and the behaviours you want. My current vague interpretation is that you want something like the following maybe:
my $url = "https://url../GetDeviceInfo"; if( ... whatever condition ...) { $url .= "&active=true"; } say "Requesting $url"; my $output = `curl -s -k -u admin:password "$url"`; ...
In reply to Re^3: Getting values with help of curl
by Corion
in thread Getting values with help of curl
by PerlMonkey22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |