I want to make a curl request like this: curl --location 'http://localhost:8080*'
, but I can receiving this error:
Error: Port should be >= 0 and < 65536. Received 8080*.
This question might seem weird, but this is because we do penetration tests for one of our application and said application report seeing url like this:
http://localhostc:boot.ini
Here’s the code that report such url for the curious:
public static String getAbsolutePath(final HttpServerRequest request) {
return request.scheme() + "://" + request.host() + request.uri();
}