Hi, Cool! I add it successfully. Thanks for your help.
On Nov 18, 2:44 am, "Jeff Fisher (Google)" <[EMAIL PROTECTED]> wrote: > Hi, > > The Content-Type header should be set to "application/atom+xml". > > Cheers, > -Jeff > > On Nov 14, 5:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I am trying to add a new album from my web application. I am using > > AuthSub for authentication. I am able to successfully retrieve the > > session token. Now the next step(as mentioned > > inhttp://code.google.com/apis/picasaweb/developers_guide_protocol.html#...) > > to do a POST request to add a album.Following the direction, I > > construct a packet as: > > > ----------------------------------------------------------- > > POST /data/feed/api/user/hugeslave HTTP/1.1 > > Host: picasaweb.google.com > > Connection: Keep-Alive > > Content-Type: text/plain > > Authorization: AuthSub token="CJK3y7DCChCaxLO0_f____8B" > > Content-length: 697 > > > <entry xmlns='http://www.w3.org/2005/Atom' > > xmlns:media='http://search.yahoo.com/mrss/' > > xmlns:gphoto='http://schemas.google.com/photos/2007'> > > <title type='text'>Trip To Italy</title> > > <summary type='text'>This was the recent trip I took to Italy.</ > > summary> > > <gphoto:location>Italy</gphoto:location> > > <gphoto:access>public</gphoto:access> > > <gphoto:commentingEnabled>true</gphoto:commentingEnabled> > > > <gphoto:timestamp>1152255600000</gphoto:timestamp> > > <media:group> > > <media:keywords>italy, vacation</media:keywords> > > </media:group> > > <category scheme='http://schemas.google.com/g/2005#kind' > > term='http://schemas.google.com/photos/2007#album'></category> > > </entry> > > --------------------------------------------------------- > > > But when I post, the response is > > ------------------------------------------------------------ > > Content-Type text/plain is not valid. > > ------------------------------------------------------------ > > > So, I want to know which one is valid. Thanks. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums 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-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---
