Click here to get back home

lwp package head question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
lwp package head question T W Hu 08-16-2005
Posted by T W Hu on August 16, 2005, 10:47 am
Please log in for more thread options


When I do
HEAD www.tmn.pt
it tells me 404 Not found.
But when I do
GET www.tmn.pt
it gives me the page.

Is this a bug in the lwp package or web server setup problem?

more info:
HEAD www.tmn.pt/index.shtml
200 OK
HEAD www.tmn.pt/default.shtml
200 OK
HEAD www.tmn.pt/index.html
404 not found




Posted by Paul Lalli on August 16, 2005, 8:43 am
Please log in for more thread options


T W Hu wrote:
> When I do
> HEAD www.tmn.pt
> it tells me 404 Not found.
> But when I do
> GET www.tmn.pt
> it gives me the page.
>
> Is this a bug in the lwp package or web server setup problem?

I don't suppose you've taken the obvious debugging step of attempting
the same steps with another server? That should be able to give you a
clue as to whether or not there's something wrong with the code, or
something wrong with that specific error that's causing problems.

>
> more info:
> HEAD www.tmn.pt/index.shtml
> 200 OK
> HEAD www.tmn.pt/default.shtml
> 200 OK
> HEAD www.tmn.pt/index.html
> 404 not found

You're missing one more critical piece of information here. What about
a GET on these specific filenames? Do their response codes match up
with the corresponding HEADs?

Please do as suggested by the Posting Guidelines, and provide a
short-but-complete script that we can run which demonstrates the issue
you're having.

Paul Lalli



Posted by Paul Lalli on August 16, 2005, 8:45 am
Please log in for more thread options


Paul Lalli wrote:
> T W Hu wrote:
> > When I do
> > HEAD www.tmn.pt
> > it tells me 404 Not found.
> > But when I do
> > GET www.tmn.pt
> > it gives me the page.
> >
> > Is this a bug in the lwp package or web server setup problem?
>
> I don't suppose you've taken the obvious debugging step of attempting
> the same steps with another server? That should be able to give you a
> clue as to whether or not there's something wrong with the code, or
> something wrong with that specific error that's causing problems.

Pardon me. That should say "with that specific server that's causing
problems".

Paul Lalli



Posted by Christian Winter on August 16, 2005, 5:46 pm
Please log in for more thread options


T W Hu wrote:
> When I do
> HEAD www.tmn.pt
> it tells me 404 Not found.
> But when I do
> GET www.tmn.pt
> it gives me the page.
>
> Is this a bug in the lwp package or web server setup problem?
[....]

Obviously a server thing:

myclient:~ # telnet www.tmn.pt 80
Trying 194.65.141.2...
Connected to www.tmn.pt.
Escape character is '^]'.
HEAD / HTTP/1.1
Host: www.tmn.pt

HTTP/1.1 404 Not found
Server: Netscape-Enterprise/4.0
Date: Tue, 16 Aug 2005 15:37:16 GMT
Set-Cookie: TMN=217.160.174.213-1124206636.927625; path=/; expires=Sun,
1-Jan-2012 23:59:59 GMT
Content-type: text/html

HTH
-Chris


Posted by T W Hu on August 16, 2005, 4:38 pm
Please log in for more thread options


> Obviously a server thing:
>
> myclient:~ # telnet www.tmn.pt 80
> Trying 194.65.141.2...
> Connected to www.tmn.pt.
> Escape character is '^]'.
> HEAD / HTTP/1.1
> Host: www.tmn.pt
>
> HTTP/1.1 404 Not found
> Server: Netscape-Enterprise/4.0
> Date: Tue, 16 Aug 2005 15:37:16 GMT
> Set-Cookie: TMN=217.160.174.213-1124206636.927625; path=/; expires=Sun,
> 1-Jan-2012 23:59:59 GMT
> Content-type: text/html

Thanks for verifying it. An utitilty program uses this to check if the link
is good or not.
But this server gives me problem. I guess I have to put index.shtml after
the server name
for this one.

HEAD -p http://myproxyhost www.tmn.pt
404 Not found
Connection: close
Date: Tue, 16 Aug 2005 20:30:13 GMT
Server: Netscape-Enterprise/4.0
Content-Type: text/html
Client-Date: Tue, 16 Aug 2005 20:34:15 GMT
Client-Peer: 192.11.226.124:8000
Client-Response-Num: 1
Set-Cookie: TMN=192.11.226.120-1124224214.39626; path=/; expires=Sun,
01-Jan-2012 23:59:59 GMT




Similar ThreadsPosted
How do I install this package using ppm? September 28, 2005, 2:44 pm
how do I package a CPAN module? October 23, 2004, 1:13 pm
how to package perl applications? November 16, 2004, 9:58 am
Mail::Internet Debian Package January 9, 2005, 3:29 pm
Newbie Q: how to make a cpan package August 30, 2005, 1:59 am
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
ppm can't find any package that provide IO for Net-Stomp July 1, 2008, 4:58 pm
Can't locate object method "new" via package "Net::SMTP" November 2, 2004, 6:36 pm
Namespace is changed before "package" line is reached November 30, 2007, 1:49 pm
Can't locate object method "blocking" via package "IO::Handle" June 20, 2005, 8:38 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap