'Curl is not getting page from Windows server

When I run the same request on a page hosted on a Apache server I have no problem, but when using curl to get the content of a page hosted on Windows Server 2019 I get nothing.

I am not running curl from the Windows server and instead trying to use curl from any other server (Linux) using the following request:

curl https://example.com/test.php?apikey=90842fc3&action=getclient echo

Posting that url in the address bar of any web browser results in:

success~100123

But curl is retrieving nothing at all.

I am open to suggestions. Does Windows Server 2019 reject curl somehow in a bid to prevent scraping or what?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source