Accessing Gmail, Calendar and Contacts using Exchange ActiveSync

2.3k views Asked by At

This maybe very noob and unworthy of stackoverflow.com, but nonetheless here goes:

I'm trying to write a custom application that syncs my Google data (emails, calendar and contacts) to the desktop (I know that there are several tools that let you do that, but curiosity only killed the cat!!).

I know that m.google.com is the sync sever I need to use. I've gone through [MS-ASHTTP].pdf, and got all the protocol information down.

Now, using either the cURL command-line or a tool (in Windows) such as Fiddler (http://www.fiddler2.com/), I'm unable to make valid ActiveSync requests to m.google.com. Moreover the URI /Microsoft-Server-ActiveSync doesn't exist on m.google.com, and searching Google turned up nothing for me. Need help!!!

1

There are 1 answers

1
Vivek Iyer On BEST ANSWER

Connecting to Google using ActiveSync should work (I have an Android app - Corporate Addressbook that does that successfully)

Use the following URL

https://m.google.com/[email protected]&DeviceId=1234512345&DeviceType=Android&Cmd=xxxxx

Edit the email address and the command you are sending. Also you will need to send the auth string in the header

I have a blog post that should help.