Hi Eric,

REQUEST
-  httprequest.Headers {Content-Type: application/atom+xml
Authorization: GoogleLogin
auth=DQAAAIAAAAAJCzxp3f8ULcJk71l4KR8G7g2hk-i0tn1RA7KvFaGlb9-7fQ6mnCYkCqbeEjfkN4VhOi1a6FHmeIjAIF0hKUFYFRcQroFW8ApOXGKQraid3lhwAfV6itLOSg1c0FkX6_BolD8dqv0nzPZCjMXnCGvfXHI6THYKvCSEUUhgc5Bceg

} System.Net.WebHeaderCollection
-  base {Content-Type: application/atom+xml
Authorization: GoogleLogin
auth=DQAAAIAAAAAJCzxp3f8ULcJk71l4KR8G7g2hk-i0tn1RA7KvFaGlb9-7fQ6mnCYkCqbeEjfkN4VhOi1a6FHmeIjAIF0hKUFYFRcQroFW8ApOXGKQraid3lhwAfV6itLOSg1c0FkX6_BolD8dqv0nzPZCjMXnCGvfXHI6THYKvCSEUUhgc5Bceg

} System.Collections.Specialized.NameValueCollection
{System.Net.WebHeaderCollection}
-  base {Content-Type: application/atom+xml
Authorization: GoogleLogin
auth=DQAAAIAAAAAJCzxp3f8ULcJk71l4KR8G7g2hk-i0tn1RA7KvFaGlb9-7fQ6mnCYkCqbeEjfkN4VhOi1a6FHmeIjAIF0hKUFYFRcQroFW8ApOXGKQraid3lhwAfV6itLOSg1c0FkX6_BolD8dqv0nzPZCjMXnCGvfXHI6THYKvCSEUUhgc5Bceg
}
+  [System.Net.WebHeaderCollection] {Content-Type: application/atom+xml
Authorization: GoogleLogin
auth=DQAAAIAAAAAJCzxp3f8ULcJk71l4KR8G7g2hk-i0tn1RA7KvFaGlb9-7fQ6mnCYkCqbeEjfkN4VhOi1a6FHmeIjAIF0hKUFYFRcQroFW8ApOXGKQraid3lhwAfV6itLOSg1c0FkX6_BolD8dqv0nzPZCjMXnCGvfXHI6THYKvCSEUUhgc5Bceg
}


RESPONSE

{X-Content-Type-Options: nosniff
Content-Length: 149
Cache-Control: private, max-age=0
Content-Type: text/html; charset=UTF-8
Date: Fri, 10 Apr 2009 06:39:33 GMT
Expires: Fri, 10 Apr 2009 06:39:33 GMT
Set-Cookie: S=health=lqMMIQ59itBpO9K0l6EDTw; Domain=.google.com; Path=/;
HttpOnly
Server: GFE/2.0
WWW-Authenticate: GoogleLogin realm="
http://www.google.com/accounts/ClientLogin";, service="health"

ResponseURRI {https://www.google.com/health/feeds/profile/list/}
Server "GFE/2.0"
Status System.Net.HttpStatusCode.Unauthorized
StatusDescription "Token invalid"
}

On Thu, Apr 9, 2009 at 5:37 PM, Eric (Google) <[email protected]> wrote:

>
> Can you post an http request/response capture?
>
> Eric
>
> On Apr 9, 12:30 pm, dellyJM <[email protected]> wrote:
> > 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