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