Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5843443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:09:19+00:00 2026-05-22T12:09:19+00:00

While logging HTTP requests to a file I have found something I would not

  • 0

While logging HTTP requests to a file I have found something I would not expect.

I just put in the log the $_SERVER['REQUEST_URI'].

Guess what I have found, an url with #fragment attached:

18/05: requested cat/page.html#fragment

Note out of 2477 line of logs I found only one line with fragment attached

Everyone know (should) that fragment is never known server-side but only javascript code can get it. So what is happening here?

I am running PHP 5.3 on Apache 2.X (Debian).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:09:20+00:00Added an answer on May 22, 2026 at 12:09 pm

    Your assertion that “fragment is never known server-side but only javascript code can get it” is a little short-sighted.

    Whilst it’s true that, in general operation with a conventional browser, a fragment is not included in the request-to-server, there is nothing stopping me from writing whatever I want in an HTTP request.

    echo "GET /lol/werent/expecting/this#were_you HTTP/1.1" > /dev/tcp/yourwebsite.com/80
    

    Someone’s testing, someone’s playing, someone’s playing a bizarre hack attempt, or someone’s using a buggy browser.

    I wouldn’t worry about it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something wich looks to me like race condition while logging to file
I am trying to put some logging to capture the raw http request coming
I know destructor shouldn't not throw exception. http://www.parashift.com/c++-faq-lite/dtors.html#faq-11.13 I have the following code :
This has been bothering me for a while now: Could not load file or
I've run into a situation (while logging various data changes) where I need to
I wanted to keep my logging statements as short as possible while preventing console
I'm using the: console.log() method to log messages to firefox (3.6.6)/firebug while working on
I have been using the Spring RestTemplate for a while and I consistently hit
My program is logging data to a file, at the same time a user
Ok, I have been banging my head on this one for a while, figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.