>-----Original Message----- >From: Gisle Aas [mailto:[EMAIL PROTECTED] >Sent: Friday, 18 June 2004 5:52 PM >To: (William) Wenjie Wang >Cc: [EMAIL PROTECTED] >Subject: Re: libwww-perl-5.800 > > >I would be greatful if you had the time to figure out why the tests >fail and perhaps even propose patches to work around the issue. There >might be simple tweaks that can be done to them to make them work in >your envirionment. >
It turned out to be a testing script issue;-) As I was behind the firewall, somehow I have to let the UserAgent known what's my proxy. I've had an environment variable HTTP_PROXY defined already. Most of the problems were fixed after I added the following line to both "t/live/jigsaw-md5.t" and "t/live/jigsaw-chunk.t" -------------------------8<-------------------------- my $ua = LWP::UserAgent->new(keep_alive => 1); +$ua->env_proxy; ------------------------->8-------------------------- The following tests failed "test 2" due to $res->code==200 and Client-Response-Num==1: -------------------------8<-------------------------- C:\Perl\temp\libwww-perl-5.800>perl -Ilib t/live/jigsaw-md5.t 1..2 ok 1 HTTP/1.0 200 OK Date: Mon, 21 Jun 2004 05:32:45 GMT Age: 5624 ETag: "1jca8jc:q61in3to" Server: Jigsaw/2.2.4 Content-Language: en Content-Length: 489 Content-MD5: 0TMnkhCZtrIjdTtJk6x3+Q== Content-Type: text/html Last-Modified: Tue, 20 Jun 2000 22:48:51 GMT Client-Date: Mon, 21 Jun 2004 07:06:49 GMT Client-Peer: 192.41.203.134:3128 Client-Response-Num: 1 Proxy-Connection: keep-alive Title: Retry-After header X-Cache: MISS from macavity.sw.oz.au X-Cache: HIT from cousin.sw.oz.au <HTML> <HEAD> <!-- Created with 'cat' and 'vi' --> <TITLE>Retry-After header</TITLE> </HEAD> <BODY> <P> <A HREF=".."><IMG SRC="/icons/jigsaw" ALT="Jigsaw" BORDER="0" WIDTH="212" HEIGHT="49"></A> <H1> The <I>Content-MD5</I> header </H1> <P>This pages is served along with its MD5 digest, you take a look at the headers, as it is quite difficult to do an auto-referent page about its md5 signature :) </P> <HR> <BR> <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A> </BODY></HTML> HTTP/1.0 200 OK Date: Mon, 21 Jun 2004 05:32:45 GMT Age: 5624 ETag: "1jca8jc:q61in3to" Server: Jigsaw/2.2.4 Content-Language: en Content-Length: 489 Content-MD5: 0TMnkhCZtrIjdTtJk6x3+Q== Content-Type: text/html Last-Modified: Tue, 20 Jun 2000 22:48:51 GMT Client-Date: Mon, 21 Jun 2004 07:06:49 GMT Client-Peer: 192.41.203.134:3128 Client-Response-Num: 1 Proxy-Connection: keep-alive Title: Retry-After header X-Cache: MISS from macavity.sw.oz.au X-Cache: HIT from cousin.sw.oz.au <HTML> <HEAD> <!-- Created with 'cat' and 'vi' --> <TITLE>Retry-After header</TITLE> </HEAD> <BODY> <P> <A HREF=".."><IMG SRC="/icons/jigsaw" ALT="Jigsaw" BORDER="0" WIDTH="212" HEIGHT="49"></A> <H1> The <I>Content-MD5</I> header </H1> <P>This pages is served along with its MD5 digest, you take a look at the headers, as it is quite difficult to do an auto-referent page about its md5 signature :) </P> <HR> <BR> <A HREF="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A> </BODY></HTML> not ok 2 ------------------------->8-------------------------- Test on "jigsaw-chunk.t" also failed on "test 2" due to Header "Client-Transfer-Encoding" not defined:( The Header section of the downloaded page are: -------------------------8<-------------------------- HTTP/1.0 200 OK Date: Mon, 21 Jun 2004 06:52:27 GMT ETag: "1j3k6u8:tikt981g" Server: Jigsaw/2.2.4 Content-Type: text/plain Expires: Mon, 21 Jun 2004 06:52:26 GMT Last-Modified: Mon, 18 Mar 2002 14:28:02 GMT Client-Date: Mon, 21 Jun 2004 07:14:11 GMT Client-Peer: 192.41.203.134:3128 Client-Response-Num: 1 Proxy-Connection: close X-Cache: MISS from macavity.sw.oz.au X-Cache: HIT from cousin.sw.oz.au ------------------------->8-------------------------- Cheers, WWang ------------------------------------------------------------------------- Wenjie Wang(aka William),Senior Software Engineer [EMAIL PROTECTED] Aurema Pty Limited Tel:+61 2 9698 2322 PO Box 305, Strawberry Hills NSW 2012, Australia Fax:+61 2 9699 9174 79 Myrtle Street, Chippendale NSW 2008, Australia http://www.aurema.com