Closed valzargaming closed 1 year ago
Hey @valzargaming, the fragment is only used on the client side and are ignored by the server. You can try this out with curl -v https://example.com#hello
and taking a look at the headers. Here are some links for more information on this:
RFC 5147: https://www.rfc-editor.org/rfc/rfc5147#section-1.2 Stackoverflow: https://stackoverflow.com/questions/51650538/curl-offers-an-option-to-add-the-url-fragment
I would also suggest to use just the HTTP Authorization
header for username
and password
to avoid accidentally leaking this information (e.g. accidentally dumping the URI in your code).
Hope this helps :+1:
This should answer your question in here, so I'll go ahead and close this ticket for now.
Using path
http://username:password@10.0.0.25:55555/test/?key=value#anchor
and PHP version 8.2.7Output: