Re: Passing value for a GET Method

2008-04-08 Thread Gunnar Hjalmarsson
Prabu Ayyappan wrote: I want to Pass values for GET method. As like we pass value for POST method When am passing the value through the Query String it is working http://mylink?user=json%3A%5B%27testuser%27%5D $req = HTTP::Request->new(GET => $url); So why don't you stick with that? I don

Passing value for a GET Method

2008-04-08 Thread Prabu Ayyappan
Hi, I want to Pass values for GET method. As like we pass value for POST method use strict; use warnings; my $browser = LWP::UserAgent->new; my $word = $ARGV[0]; my $url = 'http://mylink'; my $response = $browser->post( $url,['q' => $word]); die "$url error: ", $response->status_lin