httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel E <emmanue...@gmx.net>
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">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<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>
<br>
Phil Pinkerton wrote:
<blockquote
 cite="mid:c70ccaee0804300640x2acf0102y9c1e87da91ad441c@mail.gmail.com"
 type="cite">
  <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="http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name">http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name</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+
REMOTE_ADDR - xx.xxx.xxx.xxx
REMOTE_PORT - xxxx
REQUEST_METHOD - GET
REQUEST_URI - /cgi-bin/application/app_1.pl?en=AOA_Property&amp;pkn=20080526+-+Defect+
SCRIPT_FILENAME - /server.net/cgi-bin/application/app_1.pl
SCRIPT_NAME - /cgi-bin/application/app_1.pl



On Wed, Apr 30, 2008 at 9:25 AM, Emmanuel E <a class="moz-txt-link-rfc2396E" href="mailto:emmanuel.e@gmx.net">&lt;emmanuel.e@gmx.net&gt;</a>
wrote:
  </pre>
  <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:

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

Example&gt;
      </pre>
    </blockquote>
    <pre wrap=""><a class="moz-txt-link-freetext" href="http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name&pkn=20080526+-+Defect+#123456">http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name&amp;pkn=20080526+-+Defect+#123456</a>
    </pre>
    <blockquote type="cite">
      <pre wrap="">This example shows in the http URL address just fine but beacuse
of
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.

 Example2&gt;
      </pre>
    </blockquote>
    <pre wrap=""><a class="moz-txt-link-freetext" href="http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name&pkn=20080526+-+Defect+%23123456">http://server.net/cgi-bin/application/app_1.pl?en=PROJECT_Name&amp;pkn=20080526+-+Defect+%23123456</a>
    </pre>
    <blockquote type="cite">
      <pre wrap="">please advise

Phil




      </pre>
    </blockquote>
    <pre wrap=""> ---------------------------------------------------------------------
 The official User-To-User support forum of the Apache HTTP Server Project.
 See <a class="moz-txt-link-rfc1738" href="http://httpd.apache.org/userslist.html">&lt;URL:http://httpd.apache.org/userslist.html&gt;</a>
for more info.
 To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
  "   from the digest: <a class="moz-txt-link-abbreviated" href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
 For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>


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


  </pre>
</blockquote>
</body>
</html>

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message