httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject mod_cgi/1412: Apache rewrites Location: and mangles # for intra-document links (fwd)
Date Thu, 13 Nov 1997 21:53:13 GMT
Hmm.  There is something odd going on here.

Whenever I try a location like:

	Location: /foo/file.html#bar

from a CGI, I get Apache complaining about file not found.  That shouldn't
happen.  What Apache needs to do is send the redirect to the client
because it has a # in it.

For the user below, Apache is doing that but messing it up.

Why doesn't it behave the same way for me?

---------- Forwarded message ----------
Date: 13 Nov 1997 21:28:20 -0000
From: Robert Forsman <thoth@purplefrog.com>
To: apbugs@hyperreal.org
Subject: mod_cgi/1412: Apache rewrites Location: and mangles # for intra-document links


>Number:         1412
>Category:       mod_cgi
>Synopsis:       Apache rewrites Location: and mangles # for intra-document links
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 13 13:30:01 PST 1997
>Last-Modified:
>Originator:     thoth@purplefrog.com
>Organization:
apache
>Release:        1.2.1
>Environment:
Linux type-a.ortge.ufl.edu 2.0.29 #1 Tue May 20 14:15:26 EDT 1997 i586
gcc version 2.7.2.1
>Description:
 frop:7 $ echo "course=SDS6411" | CONTENT_LENGTH=500 REQUEST_METHOD=POST ~httpd/cgi-bin/find-course
Location: /gradcat/dept-counselor-education.html#SDS6411

 frop:2 $ telnet www 80
Trying 128.227.71.81...
Connected to web.ortge.ufl.edu.
Escape character is '^]'.
GET /cgi-bin/find-course?course=SDS6411 HTTP/1.0
Accept: */*

HTTP/1.1 302 Moved Temporarily
Date: Thu, 13 Nov 1997 21:23:55 GMT
Server: Apache/1.2.1
Location: http://www.ortge.ufl.edu/gradcat97/dept-counselor-education.html%23SDS6411
Connection: close
Content-Type: text/html

<HTML><HEAD>
<TITLE>302 Moved Temporarily</TITLE>
</HEAD><BODY>
<H1>Moved Temporarily</H1>
The document has moved <A HREF="http://www.ortge.ufl.edu/gradcat97/dept-counselor-education.html%23SDS6411">here</A>.<P>
</BODY></HTML>
>How-To-Repeat:
Write a CGI script that gives identical output 
to that from my command-line example
>Fix:
Don't mangle #s when you process the Location header from a CGI script
>Audit-Trail:
>Unformatted:


Mime
View raw message