My mistake, didn't use Mechanize.
My code is -
require HTTP::Request; require LWP::UserAgent; use HTTP::Request::Common; print "hallo\n"; my $ua = LWP::UserAgent->new; $ua->env_proxy; $te='hallo hallo hallo'; print $te; my $response = $ua->get('http://sentimentanalyzer.appspot.com','in +put'=>$te); if ($response->is_success) { print "seccess\n"; $page=$response->content; print $page; }
I wanted to print the content of the response to see what i am getting but it was the original url HTML code. I can't pass the text to the text area or activate the button (at least it doesn't show in the response content). How can i make it work and get a specific value from it?
In reply to Re^4: Passing Values to a webpage and retrieving an answer
by nateg
in thread Passing Values to a webpage and retrieving an answer
by nateg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |