Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 14761
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: shahrahulb [...] yahoo.co.in
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Mon, 26 Sep 2005 11:16:30 -0700 (PDT)
From: rahul shah <shahrahulb [...] yahoo.co.in>
Subject: issue abou mechanize
To: bug-WWW-Mechanize [...] rt.cpan.org
I am using LWP::MEchanize module. request the url and checks the response from server... th ething is I run that on my company's server.. what if the internet is not working...when the customers are hitting my url, they will get some failure, but when i request that url from internal company address, i might get expected response... also in my perl script, i m requesting the url by going thru proxy.... my question is is my perl script requesting this url externally or internally??????? Show quoted text
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Date: Sun, 2 Oct 2005 11:53:22 -0500
From: Andy Lester <andy [...] petdance.com>
To: rahul shah via RT <bug-WWW-Mechanize [...] rt.cpan.org>
Subject: Re: [cpan #14761] issue abou mechanize
RT-Send-Cc:
On Mon, Sep 26, 2005 at 02:17:00PM -0400, rahul shah via RT (bug-WWW-Mechanize@rt.cpan.org) wrote: Show quoted text
> my question is is my perl script requesting this url > externally or internally???????
The requests are made from your program, on the machine it's running on. If that machine is internal, then that's where the requests are coming from. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
So if the internet is down my internal will still get the proper response from the server???? [PETDANCE - Sun Oct 2 12:53:43 2005]: Show quoted text
> On Mon, Sep 26, 2005 at 02:17:00PM -0400, rahul shah via RT (bug-WWW- > Mechanize@rt.cpan.org) wrote:
> > my question is is my perl script requesting this url > > externally or internally???????
> > The requests are made from your program, on the machine it's running > on. > If that machine is internal, then that's where the requests are coming > from.
[guest - Sun Oct 2 17:03:27 2005]: Show quoted text
> So if the internet is down my internal will still get the proper > response from the server????
Date: Sun, 2 Oct 2005 16:42:58 -0500
From: Andy Lester <andy [...] petdance.com>
To: Guest via RT <bug-WWW-Mechanize [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #14761] issue abou mechanize
RT-Send-Cc:
On Sun, Oct 02, 2005 at 05:03:27PM -0400, Guest via RT (bug-WWW-Mechanize@rt.cpan.org) wrote: Show quoted text
> So if the internet is down my internal will still get the proper > response from the server????
Mechanize is no different than a web browser. If your web browser can make the request, then Mech can, too. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
i m using www::mechanize module $mech->submit_form( form_name => 'test', form_number => 0, fields => { login => $loginname, password => $password, } ); $redirected_url = $mech->base(); if ($mech->title() =~ /Testing/) { print "$NAME: Response: 200 OK. Title Testing Page: OK\n\n"; } else { print "$NAME: Expected Testing Page: But got redirected to different page: $redirected_url \n"; print $mech->content() } if i manually try $redirected url, it opens the exact page i m expecting but still the above script goes in else part..... why????? $mech->content() prints <title> 500 System is Temporarily Unavailable </title>