More data from Request object
- RequestUri
{https://www.google.com/health/feeds/profile/list/}
System.Uri
AbsolutePath "/health/feeds/profile/list/" string
AbsoluteUri
"https://www.google.com/health/feeds/profile/list/"
string
Authority "www.google.com" string
DnsSafeHost "www.google.com" string
Fragment "" string
Host "www.google.com" string
HostNameType Dns System.UriHostNameType
IsAbsoluteUri true bool
IsDefaultPort true bool
IsFile false bool
IsLoopback false bool
IsUnc false bool
LocalPath "/health/feeds/profile/list/" string
OriginalString
"https://www.google.com/health/feeds/profile/list/"
string
PathAndQuery "/health/feeds/profile/list/" string
Port 443 int
Query "" string
Scheme "https" string
+ Segments {Dimensions:[5]} string[]
UserEscaped false bool
UserInfo "" string
On Apr 9, 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();-
> > Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---