Hi Yijie,

Seems that the following snippet  is incorrect.

data = "POST http://www.google.com/calendar/feeds/default/private/full
";
data += "Authorization: GoogleLogin auth=" + auth + " ";
data += " Content-Type: application/atom+xml ";
data += " <entry xmlns='http://...> (copied and pasted from the google
example)</entry>";

You need to set the auth token and the content type in the header rather
than in the body and only the  <entry > </entry> stuff should go in the body
part.

Regards,
Bala







On 6/5/07, Yi Jie <[EMAIL PROTECTED]> wrote:
>
>
> Hi there,
>
> How do I construct a proper HTTP request to create a new calendar
> entry through the XML feed? I'm trying to do it in Java. The Java
> Client Library can't work for me due to some version problems on my
> server.
>
> I keep meeting the HTTP/1.0 400 Bad Request error,
> followed by: Content-Type application/x-www-form-urlencoded is not
> valid.
>
> How do I specify the correct header and all?
>
> Sorry I'm new to these but can't seem to find any solution anywhere.
> Would appreciate any help. thanks..
>
> -yijie-
>
>
> >
>


-- 
Thanks and Regards,
Balaram Barange

--~--~---------~--~----~------------~-------~--~----~
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