So I migrated from a different server, and this worked fine there but I am having issues. My suspicion is some sort of restriction for an unknown browser blocks my GET request from the server using a PHP file.
For example, this URL request using Chrome browser works fine:
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(
"http://MyInfinityFreeCoolURL.com/test_file.php?value=test_value");
myRequest.Method = "GET";
var resp = (HttpWebResponse)myRequest.GetResponse();```
Meanwhile, on my old server, the above C# code still works. Any ideas on what I can add inside my test_file.php to be OK accepting my C# code request?
Thanks!
If you are not using the file for an API, I suggest using Microsoft Edge WebView2 (that is, if it is a gui application). It is only available in .NET and c(++), but you are using .NET.