in reply to Re: Post and get
in thread Post and get

I see 2 problems with your adapted version of my example:

1. You shoul use query_form to encode the request as I did in my example. If you do not, you will have to worry about handling special characters (like spaces) in the request yourself.

my $site=new URI::URL 'http://translate/lhsl.com/greenacres.dll';
$site->query_form(text=>$text, pair =>$pair, domain=>$domain, interface=>$interface);

2. $WWWresult is not the text returned by LWP; it is an HTTP::Response object. The object contains the page conent (in $WWWresponse->content) in addition to any LWP errors, etc...

Replies are listed 'Best First'.
RE: RE: Re: Post and get
by toadi (Chaplain) on Jul 04, 2000 at 13:57 UTC
    Thanx...

    That's why I come to PM. I'm always browsing CPAN, but not always understanding the manuals or overlookings something and then there are people at PM who can guide me and see the light.

    My problem is that sometimes I don't understand objects good enough to know exectly what I'm doing :-)

    But I'm learning!!!!
    --
    My opinions may have changed,
    but not the fact that I am right