Hey Kulvinder,

You just need to change your request feed URLs to use https instead:

// Create the query object:
EventQuery query = new EventQuery();
query.Uri = new
Uri("https://www.google.com/calendar/feeds/default/private/full";);

// Tell the service to query:
EventFeed calFeed = service.Query(query);


Best,
Alain

On Thu, Aug 11, 2011 at 12:09 AM, Kulvinder Singh
<[email protected]>wrote:

> Hi Alain,
>
> Thanks a lot for your reply.
>
> It will be great if you could tell me how to send calls over https rather
> than http. I mean i am using client libraries purely so what
> customization/setting i need to do to run it over https.
>
> Thanks
> Kulvinder Singh
>
>  *From:* Alain Vongsouvanh <[email protected]>
> *To:* [email protected]
> *Sent:* Monday, August 8, 2011 6:50 PM
> *Subject:* Re: [Calendar API] 320 redirections
>
> Hello Kulvinder,
>
> Please try using SSL (https) over non-SSL (http) whenever possible. That
> might event solve your issue.
>
> As you stated, redirects should be handled by the client library, but there
> can be some times when too much redirects are requested by the API. In those
> cases, there is no other choice than to try again.
>
> Best,
> Alain
>
> On Thu, Aug 4, 2011 at 2:26 AM, Kulvinder Singh 
> <[email protected]>wrote:
>
> Hi,
>
> Please help me with a lot of redirection issues which i am facing while
> using Calendar .NET API. The stack trace of the error is as :
>
> Message : Execution resulted in a redirect from
> http://www.google.com/calendar/feeds/[email protected]<http://www.google.com/calendar/feeds/[email protected]>
> lendar.google.com/private/full/gu2/634?gsessionid=dwwdddft
>
> Source : Google.GData.Client
>
> Google Server Error : <HTML><HEAD><meta http-equiv="content-type"
> content="text/html;charset=utf-8">
> <TITLE>302 Moved</TITLE></HEAD><BODY>
> <H1>302 Moved</H1>
> The document has moved
> <A
> HREF="http://www.google.com/googlecalendar/unavailable.html";>here</A>.
> </BODY></HTML>
>
> StackTrace :    at Google.GData.Client.GDataRequest.Execute()
>    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)
>    at Google.GData.Client.GDataGAuthRequest.Execute()
>    at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase
> baseEntry,
> GDataRequestType type, AsyncSendData data)
>    at Google.GData.Client.Service.Update(AtomEntry entry, AsyncSendData
> data)
>
> I thought the .NET library should take care of the redirections on its own.
> Earlier, it was working but i was using quite an older version but ever
> since i have upgraded to the latest version, i am getting this error quite
> frequently.
>
> Thanks in advance.
> --
> 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://code.google.com/apis/calendar/community/forum.html
>
>
>
>
> --
> Alain Vongsouvanh
>
>
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>
>
>  --
> 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://code.google.com/apis/calendar/community/forum.html
>



-- 
Alain Vongsouvanh

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to