Why am I getting a 401 (Unauthorized) error when POSTing to Google Reader API?
I'm trying to interface with the Google Reader (undocumented/unofficial) API using information from this page . My first step is to get a SID and token, which works fine, but I can't seem to POST anything without getting a 401 error. Here is the code I'm using to get my SID and token: static string getSid() { HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://www.google.com/accounts/ClientLogin?service=reader&Email=username&Passwd=password"); req.Method = "GET"; string sid; HttpWebResponse response = (HttpWebResponse)req.GetResponse(); using (var stream = response