1

In a Virtual Host I use CustomLog and mod_log_config to log HTTP Requests:

LogFormat "\"%r\"" custom

The problem is that the entire Query String isn't being logged when there's a #(Number Sign) in the URL (Visiting domain.tld/slug/foo^bar#baz results in "GET /slug/foo%5ebar HTTP/1.1" in which #baz is omitted).

Is there any reason why a # character in the URL only gets logged until that point in the string? Is there documentation available on this or a way to work around this?

Bas Peeters
  • 3,269
  • 4
  • 33
  • 49

1 Answers1

7

The fragment part of the URL (the part after '#') is never sent to the server: it remains entirely client-side.

Malcolm Rowe
  • 747
  • 3
  • 14
  • 1
    That appears to be true. I've used `tcpdump` to dump the request that my browser made and everything until the `#` gets sent along. – Bas Peeters Aug 04 '14 at 08:05