GCalendarSync v0.2 Fix

This is going to sound a little presumptuous, but it looks like something Google is doing changed last night and broke their code library for their API.

New release: Binary only | Source will be updated soon

What happened?
In the gauthrequest.cs file, provided by Google, lines 408-9 look like this

// check the content type, it must be text
if (!response.ContentType.Equals(HttpFormPost.ContentType))

and this was working until last night. In this case HttpFormPost.ContentType = “text/plain”. Problem appears that now, the response.ContentType of the authrequest is being returned as “text/plain; charset=utf-8”. So that .Equals conditional no longer does the right thing, thus the authentication breaks.

To fix, I change line 409 to


Now all is well again. Re-install and give it a go. I guess this is going to be standard for interfacing with a “beta” Google API. And we’ll just have to get used to it…


5 Responses to “GCalendarSync v0.2 Fix”

  1. 1 Michael December 20, 2006 at 6:49 pm

    Please change also this one on your Code (around line 136):

    string.Format(“http://www.google.com/calendar/feeds/{0}%40gmail.com/”, txtUsername.Text);

    string.Format(“http://www.google.com/calendar/feeds/{0}/”, txtUsername.Text.Replace(“@”, “%40”));

    //Uses email to login like on the GCal login page…

    so it will work for yyy@mydomain.com as good as for xxx@gmail.com
    or check if the username (new email) has an @ on it… if no add gmail.com…

    Contact me if you d’like a conversation….

  2. 2 Michelle December 25, 2006 at 3:52 pm

    Found this app today, and it worked fine on my HP6945.

    1 UI issue since the 6945 has a smaller screen: the “extra settings” box looks all wonky. “Extra” is on 1 line, “settings” is on the next, but “settings” is cut off in the middle (horizontally) due to the numerical text box appearing on line 3, but overlapping line 2.

    Also “save password” comes out as “save passwor” on my screen.

    I’ve been looking for something like this, I can’t wait to see the next version with more features!

    Another feature to think about for when you move everything into an options menu: a “sync now” feature if I just want to do a quick sync with an event I just entered.

  3. 3 Michelle December 25, 2006 at 5:06 pm

    Well hmmm I spoke too soon. The initial sync was fine, then I added a bunch of all-day events in Google Calendar. After the next sync, your app synced them a day earlier than they should be, for example, in Google Calendar I had an all-day event on 1/11/2007, your app put it on 1/10/2007. Same goes with all 12 all-day events I put in.

  4. 5 Mr. T October 2, 2007 at 6:42 am

    Does not work on Dell Axim X50 😦

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This blog has moved HERE. Please go there for further updates, posts and comments.

%d bloggers like this: