ok, i can see that working... I will make a note to revisit this, but
normally when a redirect is answered with a redirect, this should indicate
an error condition - which currently seems to be the case....
Frank Mantek
Google
On 5/7/07, yamamo <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> > the main reason i do not currently support several redirections is, that
> > this normally indicates a server failure.
>
> I see.
> Recently, server returned 302 frequently :-(
> manytimes, redirect to unavailable.html.
> sometimes, fall into a redirect loop.
>
> elsewhere, server returned 500 Internal Server Error (Redirection issue)
> frequently ;-(
>
>
> > How is your code protect from endless recursions on the client side?
>
> How about increasing retry count ?
>
> catch (GDataRedirectException re)
> {
> base.Reset();
> this.TargetUri = new Uri(re.Location);
> this.Execute(iRetrying + 1);
> }
>
>
> # I hope that server gets well ! :-)
>
>
> ----- Original Message -----
> From: "Frank Mantek" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, May 08, 2007 8:33 AM
> Subject: Re: handling of GDataRedirectException
>
>
> > hmm..
> >
> > the main reason i do not currently support several redirections is, that
> > this normally indicates a server failure. How is your code protect from
> > endless recursions on the client side?
> >
> > Frank Mantek
> > Google
> >
> > On 5/6/07, yamamo <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi
> >>
> >> .NET Client Library can not support consecutively redirection.
> >>
> >> How about changing code as follows ?
> >>
> >> ===== GDataGAuthRequest Class =====
> >> protected void Execute(int iRetrying)
> >> {
> >> try
> >> {
> >> CopyRequestData();
> >> base.Execute();
> >> }
> >>
> >> ...OMITTED...
> >>
> >> catch (GDataRedirectException re)
> >> {
> >> base.Reset();
> >> this.TargetUri = new Uri(re.Location);
> >>
> >> // CopyRequestData(); <--- ORIGINAL
> >> // base.Execute();
> >>
> >> this.Execute(iRetrying); <--- MY SUGGESTION
> >> }
> >>
> >>
> >> >
> >>
> >
> > >
> >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---