Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Need to resolve the API call query

by davido (Cardinal)
on Jun 04, 2021 at 21:37 UTC ( #11133532=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $ua->get($uri);
    
    print Dumper "$uri\n";
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    print "FORMED: $uri\n\n";
    
    print $uri eq $wanted ? "<<perfect match!>>\n" : "<<they're different!
    +>>\n";
    
  3. or download this
    WANTED: https://dev.preview.com/oauth2/default/v1/authorize?client_id=
    +XXXXXXXXXXXXXXX&response_type=code&scope=openid&redirect_uri=http%3A%
    +2F%2Ftestchandan.com%3A5001&state=1234&nonce=UBGW
    FORMED: https://dev.preview.com/oauth2/default/v1/authorize?client_id=
    +XXXXXXXXXXXXXXX&response_type=code&scope=openid&redirect_uri=http%253
    +A%252F%252Ftestchandan.com%253A5001&state=1234&nonce=UBGW
    
    <<they're different!>>
    
  4. or download this
    #!/usr/bin/env perl
    
    ...
    print "FORMED: $uri\n\n";
    
    print $uri eq $wanted ? "<<perfect match!>>\n" : "<<they're different!
    +>>\n";
    
  5. or download this
    WANTED: https://dev.preview.com/oauth2/default/v1/authorize?client_id=
    +XXXXXXXXXXXXXXX&response_type=code&scope=openid&redirect_uri=http%3A%
    +2F%2Ftestchandan.com%3A5001&state=1234&nonce=UBGW
    FORMED: https://dev.preview.com/oauth2/default/v1/authorize?client_id=
    +XXXXXXXXXXXXXXX&response_type=code&scope=openid&redirect_uri=http%3A%
    +2F%2Ftestchandan.com%3A5001&state=1234&nonce=UBGW
    
    <<perfect match!>>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133532]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2021-12-01 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?