this is the final code...i have added a few things in this code hoping
it will work..But it doesn't...I still get the unauthorized error..


Dim myRequest As HttpWebRequest =
CType(WebRequest.Create("http://www.google.com/calendar/feeds/default/private/full";),
HttpWebRequest)
            myRequest.Method = HttpMethods.Get
            myRequest.ProtocolVersion = HttpVersion.Version11
            myRequest.PreAuthenticate = True
            myRequest.ContentType = "application/x-www-form-urlencoded"
            Dim strHeaderAuth As String = "AuthSub token=""" &
strGoogleToken & """"
            myRequest.Headers.Add("Authorization", strHeaderAuth)
            myRequest.UserAgent = "CS/1.0.0"
            myRequest.Accept = "text/html, image/gif, image/jpeg, *;
q=.2, */*; q=.2"
            myRequest.Connection = myRequest.KeepAlive
            Dim weResp As HttpWebResponse = myRequest.GetResponse()


i have another question....If after successful authorization i.e if i
dont get the notAuthorized error will i be redirected to the calendar
service that i need? Or do i have to use the response object (weResp)
in some way so that i can redirect to the google calendar??

thanks
gcal programmer


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Google Calendar 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to