I have two URL’s that both return same object structure when pasted in a browser.
• One URL will work with C# HttpWebRequest and WebClient protocols. One URL will not.
• Both return 200 OK
• Both work with Ajax
Here is a simple fiddle that demonstrates the anomaly.
strContent works
StrNoContent does not work.
Both work when pasted into a browser
https://dotnetfiddle.net/NBiXJR
I expected content to return for both. Would LOVE to know why the second one won’t work.
Mike O’Shea is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.