Query parameters in URL are not displayed or logged

#133 · open · 0 comments

View on GitHub ↗

webcheating

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](https://github.com/user-attachments/assets/6b503ca4-fad7-4122-a417-7ee4ead5499a) And here is for example the output from another http server, where these parameters are displayed: ![Image](https://github.com/user-attachments/assets/c13b7e85-5656-4bf3-8c4b-60daba47d188) 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.

Comments