@Bombbe, thank you for posting the question and apologies for the delayed response.
Note that the tools used in the question all have different utilities. Ping/Test-connection
only verifies whether the URL is reachable or not. They both use ICMP echo protocol to ensure that the endpoint is reachable. For details, see Test-Connection
Curl on the other hand, is used for data transfer. In the screenshot shared in the question, the connection does go through with Curl as well (as it says - connected to global...), however there are no authentication or data transfer being done there in the format that endpoint requires. Hence the connection gets reset (Recv failure: Connection was reset
). In short, the endpoint only had to do a simple reply back for ping/test-connection which does not involve data transfer. But curl initiated a data transfer protocol (TCP) and because the server did not get the request in required format, it simply resets the connection back.
Hope this helps.
If the answer did not help, please add more context/follow-up question for it. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.