Skip to content

Query parameters in URL are not displayed or logged #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
webcheating opened this issue May 18, 2025 · 0 comments
Open

Query parameters in URL are not displayed or logged #133

webcheating opened this issue May 18, 2025 · 0 comments

Comments

@webcheating
Copy link

When making a request with query parameters, for example:

curl http://<ip>/test?foo=bar

the server logs and responses do not show the query parameters at all. In the logs, only the path /test is displayed without the ?foo=bar part:

[2025-05-18 16:10:43] - 404 - GET /test

I don't know if it was intended that way, but it just makes it difficult to debug requests.

As shown in the image below, the server does not reflect any query parameters in the log or response:

Image

And here is for example the output from another http server, where these parameters are displayed:

Image

Environment:

  • simple-http-server version: 0.6.10 and 0.6.12(latest)
  • OS: arch linux

Perhaps it would make sense to include at least a --verbose or --debug option that logs the full request URI, including query parameters. That could be really helpful for debugging and inspecting requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant