Baris Sumengen said...
>
>Hello,
>I asked this before but I didn't get a full answer.
>
>When I try to connect to:
>http://www.salon.com/media
>
>The return message is:
>>HTTP/1.1 301 Moved Permanently
>>Date: Wed, 23 Feb 2000 21:39:49 GMT
>>Server: Apache/1.3.9 (Unix) PHP/3.0.12 mod_oas/4.63b
>>Location: http://www.salon.com/media/
>>Connection: close
>>Content-Type: text/html
>
>But if I use LWP, I don't get the code 301.
>I get an "OK" message.

Try this:

$ lwp-request -Se 'http://www.salon.com/media'


GET http://www.salon.com/media --> 301 Moved Permanently
GET http://www.salon.com/media/ --> 200 OK
Connection: close
Date: Sun, 05 Mar 2000 01:35:23 GMT
Server: Apache/1.3.9 (Unix) PHP/3.0.12 mod_oas/4.63b
Content-Type: text/html
Last-Modified: Sun, 05 Mar 2000 01:35:23 GMT
Client-Date: Sun, 05 Mar 2000 01:29:12 GMT
Client-Peer: 208.178.101.40:80
Set-Cookie: SalonMonth=carol.ixlabs.com.12305952220123238; path=/; expires=Sat, 
03-Jun-00 01:35:23 GMT
Title: Media
X-Meta-Description: Salon Media
X-Meta-Keywords: Salon Media, Salon Media, Media, Salon, Shalit, Elder, Marcus
X-Meta-PCTITLE: Salon Media


<html>
<head>
<title>Media</title>

<meta name="PCTITLE" content="Salon Media">
<meta name="description" content="Salon Media">
<meta  name="keywords" content="Salon Media, Salon Media, Media, Salon, Shalit, Elder, 
Marcus">
</head>
<body bgcolor="#ffffff" text="#000000" link="#cc0000" alink="#666666" vlink="#999999">
...

-- 
Tim Allwine
IX Development Laboratories
(707)-543-8030 Ext.15

Reply via email to