Hi Yi Jie, As long I understand, if you are trying to create a event then you should keep your content type as "application/atom+xml" for the post request for creating event.
If still that doesn't works: You need to do the following things, to create a entry on a user's account. 1. Login to the user's account. 2. After the successful login you will get the auth token from the reponse. 3. create the request set the auth token it headers to authenticate the request ( http://code.google.com/apis/calendar/developers_guide_protocol.html#authenticate ) 4. Specify the body for the request. here is how you can do it. http://code.google.com/apis/calendar/developers_guide_protocol.html#create_event Hope this will help. Thanks, 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 -~----------~----~----~----~------~----~------~--~---
