I'd almost be willing to bet it is because Bill needs to
set his "http_proxy" environment variable (assuming that
he is supposed to go through a proxy server). Bill, after you
do so, type this: "set". This will echo out all of your 
environment variables. Make sure your "http_proxy" variable
is set. Depending on how you create your environment variable,
you may need to invoke a new Command window. Make sure it is
now set.

And yes, I could be barking up the wrong tree here, but it
has a good chance of being true (if you use a proxy).

--
Mike Arms
[EMAIL PROTECTED]


-----Original Message-----
From: Reinhard Pagitsch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 01, 2004 7:19 AM
To: activeperl mailing list
Subject: Re: LPW UserAgent


Dear Bill,

It works for me also. The only _error_ is that the page you are looking for
is not found on the server:
<><result>
Sorry, but the page you requested is unavailable.
If you are looking for a FAQ, many of them have moved, try starting here.
</result>

Maybe you have to specify  a proxy server in your environment? 
SET HTTP_proxy=

As I remmeber there was something about this in the LWP manual.

regards
Reinhard


Bill Stennett wrote:

Hi Reinhard

The simplest example I have is from the manpage:

#########################################################
# Create a user agent object
  use LWP::UserAgent;
  $ua = LWP::UserAgent->new;
  $ua->agent("MyApp/0.1 ");  # Create a request
  my $req = HTTP::Request->new(POST =>
'http://www.perl.com/cgi-bin/BugGlimpse');
  $req->content_type('application/x-www-form-urlencoded');
  $req->content('match=www&errors=0');  # Pass request to the user agent and
get a response back
  my $res = $ua->request($req);  # Check the outcome of the response

  if ($res->is_success) {
      print $res->content;
  } else {
      print "Is_Success returned false\n";
      print $res->content;
  }
############################################################

This seems to run fine under linux 5.6.1 but not on PERL 5.8.1 under W2000
or XP Pro.

Best

Regards

Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Reinhard Pagitsch
Sent: 01 September 2004 13:10
To: activeperl mailing list
Subject: Re: LPW UserAgent



Dear Bill,

Bill Stennett wrote:

>Hi All
>
>Can anyone tell me if they have had problems with the LPW::UserAgent
>functions running from a windows platform. I have a short example (copied
>from the documentation) which runs fine from a linux BOX running PERL 5.6.1
>but will not run properly from either a Windows 2000 or a Window XP system
>running PERL 5.8.0
>
>What happens is that my program appears to run but it does not actually
make
>any attempt to create the TCP connection. I was just woundering if there
are
>any known issues with LPW::UserAgent under Windows Perl 5.8. Any thoughts
on
>this much appreciated
>
>Thanks
>
>Bill
>
>
I use perl 5.6.1 under Windows2000 with LWP and had no problem with it.
Can you post the code to me so I can try it.
Maybe you can see error messages if you check with $response->is_success
useing $response->error_as_HTML


mit freundlichen Gr��en,
with my best regards,
Reinhard



_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to