I am currently playing with the gravatar api, by writing a C# application.
Firstly, I tried to get my gravatar picture. It worked.
After that, I tried to get the profile QR code. It worked.
Now, I want retrieve my profile information in json. I followed the indications given by the website, and I wrote this:
using (var web = new HttpClient())
{
using (var response = await web.GetAsync("http://www.gravatar.com/205e460b479e2e5b48aec07710c08d50"))
{
// ...
Every time I try that, I get an error 403. But when I copy-paste the url in my web browser, or if I do a wget, it works fine an returns the expected result.
I also tried with this, but I get the error too:
var request = WebRequest.Create("http://www.gravatar.com/205e460b479e2e5b48aec07710c08d50.json");
using (var response = request.GetResponse())
{
// ...
Is somebody has an idea of what is wrong in my way to do?