Wel,
I adopted Lhowards code and took mine and adjusted a bit ...
my $WWWAgent = new LWP::UserAgent();
my $site=new URI::URL 'http://translate/lhsl.com/greenacres.dll?text=$
+text&pair=$pair&domain=$domain&interface=$interface';
# Create a request
my $WWWRequest = new HTTP::Request 'GET',$site->as_string();
# Pass request to the user agent and get a response back
my $WWWResult = $WWWAgent->request($WWWRequest);
Well got the same problem with my code and this code.
When I use cgi.pm to display $WWWResult I get ; HTTP::Response=HASH(0x833dd4c)
This error(in the error.log from apache) I get when using completely Lhowards code:
Error submitting form HTTP::Response=HASH(0x82bd790)->code HTTP::Response=HASH(0x82bd790)->message at /home/geert/www/cgi-bin/translate.cgi line 31.
-- My opinions may have changed,
but not the fact that I am right
|