I use file_get_contents to send a request to a web service, let say: https://example.com/mywebservice?arg1=value1&arg2=value2
If value2 is avaluewith#sometextafter, I send: https://example.com/mywebservice?arg1=value1&arg2=avaluewith#sometextafter
My problem is that when the web server processes the request, it gets arg2=avaluewith
The pound character and what is after is lost.
How to correct that?