http://www.perlmonks.org?node_id=11133530


in reply to Re^2: Need to resolve the API call query
in thread Need to resolve the API call query

Sorry, I made it . Here is the code to convert to URI

use strict; use warnings; use URI; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); $ua->proxy([ 'http' ], 'http://proxy.org.com:8080'); my $uri = URI->new('https://dev.preview.com/oauth2/default/v1/authori +ze'); $uri->query_form(client_id => 'XXXXXXXXXXXXXXX',response_type=>'cod +e', scope=>'openid',redirect_uri=>'http%3A%2F%2Ftestchandan.com%3A500 +1',state=>'1234', nonce=>'UBGW'); $ua->get($uri); print Dumper "$uri\n";

Hope this is not rubbish for others.