bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
why if i post like this it doesn't work
$name = 'john'; my $req = HTTP::Request->new(GET => 'https://www.google.com/?name=$nam +e'); $req->content_type('application/json');
but it works when no $name string in url
my $req = HTTP::Request->new(GET => 'https://www.google.com/?name=john +'); $req->content_type('application/json');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: url get with string
by huck (Prior) on Mar 23, 2017 at 08:38 UTC | |
by bigup401 (Pilgrim) on Mar 23, 2017 at 09:07 UTC | |
by Corion (Patriarch) on Mar 23, 2017 at 09:11 UTC | |
by hippo (Archbishop) on Mar 23, 2017 at 09:11 UTC | |
|
Re: url get with string
by haukex (Archbishop) on Mar 23, 2017 at 08:49 UTC | |
by bigup401 (Pilgrim) on Mar 23, 2017 at 10:36 UTC | |
by haukex (Archbishop) on Mar 23, 2017 at 10:46 UTC | |
by bigup401 (Pilgrim) on Mar 23, 2017 at 11:11 UTC | |
by huck (Prior) on Mar 23, 2017 at 12:43 UTC | |
|