httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel E <>
Subject Re: [users@httpd] Convert "#" to Ascii "%23"
Date Wed, 30 Apr 2008 14:14:48 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Use LiveHTTPHeaders with Firefox and check out what is actually sent.
Or use the free Fiddler tool from MS and check out what is actually
going out on the wire.<br>
Phil Pinkerton wrote:
  <pre wrap="">I am not sure where the problem is I tried both IE and Firefox with
the same results.

Perhaps it is in the cgi or perl script ?  see REQUEST_URI below has
dropped the path from
the "#" forward.

I cannot show details but the sequence goes like this ( page displayed
with # in the URL)
 Snip ...

HTTP_HOST - Server
HTTP_REFERER - <a class="moz-txt-link-freetext" href=""></a>
HTTP_USER_AGENT - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648;
.NET CLR 3.5.21022)
LD_LIBRARY_PATH - /vol/gcc/3.4/lib
ORACLE_HOME - /vol/oracle9.2.0.6
PATH - /usr/bin:/bin:/usr/sbin:/sbin:/usr/sbin:/usr/bin:/opt/VRTS/bin:/etc/lvm:/usr/lib/lvm
PYTHONPATH - /svn01p/svn/src/viewvc-1.0.3/lib
QUERY_STRING - en=PROJECT_Name&amp;pkn=20080526+-+Defect+
REQUEST_URI - /cgi-bin/application/;pkn=20080526+-+Defect+
SCRIPT_NAME - /cgi-bin/application/

On Wed, Apr 30, 2008 at 9:25 AM, Emmanuel E <a class="moz-txt-link-rfc2396E" href="">&lt;;</a>
  <blockquote type="cite">
    <pre wrap="">Would it by any chance be a browser problem?. Since a # is a reference
to a
part of the page, a browser should not send stuff after the # to the server.
But I have no idea how a # in a query string should be handled. Are you sure
that it is the server which is dropping stuff after the # and not the
browser itself?

 Phil Pinkerton wrote:

    <blockquote type="cite">
      <pre wrap="">Need to convert "#" to "%23" when a # is in the URL path.

    <pre wrap=""><a class="moz-txt-link-freetext" href="">;pkn=20080526+-+Defect+#123456</a>
    <blockquote type="cite">
      <pre wrap="">This example shows in the http URL address just fine but beacuse
the "#" is the first character in the defect sub-folder name the
actual page is not found because everything at the "#" is dropped.

How can I configure Apache to change the "#" in a path to its ascii
equivalent ( %23 ) ?

If I manually change it in the URL address line the page is displayed
just fine showing the folder content.

    <pre wrap=""><a class="moz-txt-link-freetext" href="">;pkn=20080526+-+Defect+%23123456</a>
    <blockquote type="cite">
      <pre wrap="">please advise


    <pre wrap=""> ---------------------------------------------------------------------
 The official User-To-User support forum of the Apache HTTP Server Project.
 See <a class="moz-txt-link-rfc1738" href="">&lt;URL:;</a>
for more info.
 To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href=""></a>
  "   from the digest: <a class="moz-txt-link-abbreviated" href=""></a>
 For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href=""></a>

  <pre wrap=""><!---->


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message