Thanks Jeff.

I know that this code worked before (a year or two ago).
Probably something has changed.
As far as I understand, since I can open the feed in my browser and
see it, I should be able to read it through my code.
If you are saying that it is now cookie based, do you know which
cookie I have to add to the request in order to get the feed?
Which one is the significant one, that would give me access to the
feed through the code (of course I must be authenticated before).

Thanks a lot.




On Jan 24, 4:51 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> There isn't an API for Google Bookmarks, though there is a feature
> request to create one:
>
> http://code.google.com/p/gdata-issues/issues/detail?id=120
>
> I'm guessing your code is trying to just use HTTP Basic Auth to
> retrieve the rss feed, which I'm certain isn't supported by the
> service, as it most likely uses cookie-based authentication through
> the sign on page.
>
> Cheers,
> -Jeff
>
> On Jan 24, 12:21 pm, slishnevsky <[EMAIL PROTECTED]> wrote:
>
> > Hello, I am trying to read google bookmarks like this
> > (username&password are mine of course):
>
> > XmlUrlResolver resolver = new XmlUrlResolver();
> > resolver.Credentials = new NetworkCredential("username", "password");
> > XmlTextReader reader = new XmlTextReader("http://www.google.com/
> > bookmarks/?output=rss");
> > reader.XmlResolver = resolver;
> > XmlDocument document = new XmlDocument();
> > document.Load(reader);
>
> > ==========================================================
> > or like this:
>
> > WebClient client = new WebClient();
> > client.Credentials = new NetworkCredential("username", "password");
> > string response = client.DownloadString("http://www.google.com/
> > bookmarks/?output=rss");
>
> > ==========================================================
>
> > But it fails with "The remote server returned an error: (401)
> > Unauthorized." error message.
> > Anybody knows why?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to