Hi All,

This is my .NET Code that i'm trying to use to connect to profile/list
but everytime I run it I get invalid token 401. What could my problem,
it's frustrating me.

            string request;
            string response;
            System.Text.StringBuilder respBody = new StringBuilder();
            HttpWebRequest httprequest;
            HttpWebResponse httpresponse;

            request = "https://www.google.com/health/feeds/profile/
list";
            httprequest =(HttpWebRequest)HttpWebRequest.Create
(request);
            httprequest.ContentType = "application/atom+xml";

            httprequest.Headers.Set("Authorization","GoogleLogin
auth=" + authCode.Trim());
            httpresponse = (HttpWebResponse)httprequest.GetResponse();

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" 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/googlehealthdevelopers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to