in reply to Re^2: Getting values with help of curl
in thread Getting values with help of curl
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"`; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting values with help of curl
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 | |
by afoken (Chancellor) on Sep 07, 2022 at 10:46 UTC |