Subject: | Problem in Proxy |
To: | book [...] cpan.org |
CC: | leira [...] cpan.org |
From: | kirankumar2kotra [...] hsbc.co.in |
Date: | Wed, 16 Nov 2005 17:33:20 +0530 |
Hi ,
I am working with the HSBC Pune,. We are working on automating the test
cases using the Mechanize tool. We were trying to use Http Recorder to
generate scripts (record-and-replay).
We came across some problems while recording the scripts. Can you help us
with these issues ?
This is what we did :
1. We installed the required Perl modules for Http Recorder.
2. We unchecked the 'Bypass proxy settings for local addresses' option :
(Embedded image moved to file: pic00398.jpg)
(in the above address field we used 127.0.0.1)
We also added the local loopback address 127.0.0.1 to Exceptions (Do not
use proxy for these addresses) :
(Embedded image moved to file: pic04951.jpg)
3. We ran the following script to start the recorder :
#!/usr/bin/perl
use strict;
use warnings;
use HTTP::Proxy;
use HTTP::Recorder;
my $proxy = HTTP::Proxy->new();
$proxy->port ( 8080 );
#$proxy->host("http://127.0.0.1");
# create a new HTTP::Recorder object
my $agent = new HTTP::Recorder;
# set the log file (optional)
$agent->file("C:\\log.txt");
# set HTTP::Recorder as the agent for the proxy
$proxy->agent( $agent );
# start the proxy
$proxy->start();
1;
4.we open url http://http-recorder in the browser .
when we type intranet url in text box and clicks go we can see first page
of intranet.we can see the the recorder code.but if we click link on opened
page the code is not generating and the link is not working .how to solve
this?????????????
If we type our proxy address in the address filed as below
(Embedded image moved to file: pic12018.jpg)
we are not able to open even http://http-recorder at all.
what may be the problem.
can you help me this.
Regards,
Kiran
************************************************************
HSBC Software Development (India) Pvt Ltd
HSBC Center Riverside,West Avenue ,
25 B Kalyani Nagar Pune 411 006 INDIA
Telephone: +91 20 26683000
Fax: +91 20 26681030
************************************************************
-----------------------------------------
***********************************************************************
This e-mail is confidential. It may also be legally privileged.
If you are not the addressee you may not copy, forward, disclose
or use any part of it. If you have received this message in error,
please delete it and all copies from your system and notify the
sender immediately by return e-mail.
Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
***********************************************************************
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.