HTTP “Location” header responds question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008-04-28 17:48 skreiv Joshua Slive:
> On Sun, Apr 27, 2008 at 9:22 PM, Daniel Aleksandersen wrote:
> > Really a question about the HTTP standard, but I had nowhere else to ask
> > it.
> >
> > May I include the HTTP "Location" header when not redirecting using a
> > 3## redirect status? I am considering including the Location header with
> > the preferred absolute URI on a 200 OK status.
> >
> >  http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
>
> That sounds like a job for Content-Location, rather than Location.
>
> My reading is that Location has exactly two places: 3xx and 201
> responses. Any other use would be non-standard.

It would not be non-standard. The responds would probably not be used by 
anyone for anything. But if you read about the Location and Content-Location 
header, I think the latter should not be used to convay the preferred 
location of a resource. That is the job of the Location header. Even if it is 
not used to rediciret, but marly inform about the preferred location.
-- 
Daniel Aleksandersen

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux