Ok, I ran the XML through a HTTPencoding function, and now I get
another error.  I add below the post data and response.


POST http://www.google.com/calendar/feeds/default/private/full HTTP/
1.0
Content-Type: application/atom+xml
Content-Length: 269
Authorization: GoogleLogin
Auth=DQAAAI0AAADZEO3Q8BlSWH8VtnVEWaBETQz_sD9ygAVvQpgVR5QaL2qw5r2mY8GYy1BRtIfBEIY72hdO-
s5zDH3yuEJM9Z3H6dpMUC3oGuc7A83W8iw6fyZA8IeDv92hL8IwtGRfiXWDj0NhTdPfYc4dzkxqJO-
SCSqjKPpKXHHCNkskdnlvepPu8oFwMqyv6zcWrvGxqik
Proxy-Connection: keep-alive
Host: www.google.com
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Cookie: S=calendar=U_Lu3giHnqPCWCKVdwbbbQ

%3Centry+xmlns%3D''http%3A%2F%2Fwww.w3.org%2F2005%2FAtom''+xmlns%3AgCal
%3D''http%3A%2F%2Fschemas.google.com%2FgCal%2F2009''%3E%3Ccontent+type
%3D''html''%3ETennis+with+John+December+23+3pm-3%3A30pm%3C%2Fcontent%3E
%3CgCal%3Aquickadd+value%3D%22true%22%2F%3E%3C%2Fentry%3E

And then I get

HTTP/1.0 400 Bad Request
Expires: Wed, 30 Dec 2009 20:16:32 GMT
Date: Wed, 30 Dec 2009 20:16:32 GMT
Content-Type: text/html; charset=UTF-8
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Server: GFE/2.0

Content is not allowed in prolog.



Do you know what this message "Content is not allowed in prolog"
means ?

Thanks,

Walter.




On 30 dec, 00:36, Ray Baxter <[email protected]> wrote:
> I'm not sure exactly what encoding is going on, but this:
> <entry xmlns=''http://www.w3.org/2005/Atom''%20xmlns:gCal=''http://
> schemas.google.com/gCal/2009''%3E%3Ccontent%20type=''html''%3ETennis
> %20with%20John%20December%2023%203pm-3:30pm%3C/content%3E
> %3CgCal:quickadd%20value=<http://schemas.google.com/gCal/2009''%3E%3Ccontent%20type=''html''%3E...
> %20with%20John%20December%2023%203pm-3:30pm%3C/content%3E
> %3CgCal:quickadd%20value=>"true"/%3E%3C/entry%3E
>
> is not a properly encoded version of this:
>
> <entry xmlns=''http://www.w3.org/2005/Atom'xmlns:gCal=''http://
> schemas.google.com/gCal/2009'><content type=''html''>Tennis
>  with John December 23 3pm-3:30pm</content>
> <gCal:quickadd value="true"/></entry>
>
> Something weird is happening.
>
> Ray
>
> On Tue, Dec 29, 2009 at 10:03 AM, soitjes <[email protected]>wrote:
>
> > I try to create an event with the XML as proposed in the
> > documentation, but I get this error :
>
> >         Element type "entry" must be followed by either attribute
> > specifications, "gt" or "/gt".
>
> > I don't understand, because I simply copy/pasted the example from the
> > docs.   I used a HTTP sniffer, and everything looks ok.  This is what
> > I see through the sniffer :
>
> > POSThttp://www.google.com/calendar/feeds/default/private/fullHTTP/
> > 1.0
> > Content-Type: application/atom+xml
> > Content-Length: 239
> > Authorization: GoogleLogin
>
> > Auth=DQAAAIwAAAAjwxdsrskBLCGFfKWuWVjDOABOO01-9JPF6a8CTScDzlVpkDYEsTuAOHNtrljWZPi6g4LyZ6ZF4DjD4TKPLkBq2PWWjd_w-
> > wT_g26HZyd4vvIGuIKGzFX41I-
> > qdsGtQAT4LYAfpnLi2QXChtZcES8avCwgW2rL6g56KaVIQYNAzAGfpAyR5EX5a9xzFKuSFBI
> > Proxy-Connection: keep-alive
> > Host:www.google.com
> > Accept: text/html, */*
> > Accept-Encoding: identity
> > User-Agent: Mozilla/3.0 (compatible; Indy Library)
> > Cookie: S=calendar=CwvW3CvuE7otGK-KJWj5ng
>
> > <entry xmlns=''http://www.w3.org/2005/Atom''%20xmlns:gCal=''http://
> > schemas.google.com/gCal/2009''%3E%3Ccontent%20type=''html''%3ETennis
> > %20with%20John%20December%2023%203pm-3:30pm%3C/content%3E
> > %3CgCal:quickadd%20value="true"/%3E%3C/entry%3E
>
> > Does somebody see why I get this error ?
>
> > Thanks,
>
> > Soitjes.
>
> > --
>
> > 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]<google-calendar-help-dataapi%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-calendar-help-dataapi?hl=en.
-- 
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.


Reply via email to