Visual Studio .NET Forbidden Issue

Avatar image for kevinmchugh1981
KevinMchugh1981

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

This might be more to do with C# than the API to be honest, but I am hoping someone here has had the same experience and can help me.

I'm using an HttpClient to connect to the API, passing in a string URL into GetAsync...only the response I get is 403 forbidden.

If I copy the same URL into my browser, it happily shows me the correct results.

I feel like I am missing something obvious, as the code is pretty straightforward....

Anyone got any suggestions?

Thanks either way.

Kevin

Avatar image for kevinmchugh1981
KevinMchugh1981

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

To anyone who finds this and needs help the answer is you need to add the "User-Agent" to your Default Request Headers