I am not sure why I did not use these in the first instance, I don't
think Google supported SSL in the first versions of their API.
They do now, and it seems that this week they stopped supporting non-ssl
requests.
This seems to be related to problems at googles end with perhaps
the api not being correctly implemented to start with. Particularly the
docID was incorrect.
I think google worked around the problem with a redirect which the curl
download_file downloaded rather than followed the redirect.
Google have now allowed documents to be downloaded via their API
(http://googledataapis.blogspot.com/2009/02/start-downloads.html) so
the google docs repo plugin could be finished.
At the moment i've set the export format hardcoded, hopefully we can allow the
repo api let the user choose later...