This error is because when you are sending your POST request you are not sending a Content-Length header.
Cheers, -Jeff On Nov 21, 12:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi, all > > i am a new guy about Picasa development, now i met a question want to > ask, hope you can help me kindly,thanks in advance. > > i try to add an album refer the section "Add an album" > athttp://code.google.com/intl/zh-CN/apis/picasaweb/developers_guide_pro... > , send the post to the url: > http://picasaweb.google.com/data/feed/api/user/[EMAIL PROTECTED] > > and my entry is : > > String entryString = "<entry xmlns='http://www.w3.org/2005/ > Atom'\n" > +"xmlns:media='http://search.yahoo.com/mrss/'\n" > +"xmlns:gphoto='http://schemas.google.com/photos/2007'> > \n" > + "<title type='text'>" > + name > + "</title>\n" > + "<summary>" > + summary > + "</summary>\n" > + "<gphoto:location>Italy</gphoto:location>\n" > + "<gphoto:access>private</gphoto:access>\n" > + "<gphoto:commentingEnabled>true</ > gphoto:commentingEnabled>\n" > + "<gphoto:timestamp>" > + String.valueOf(System.currentTimeMillis()) > + "</gphoto:timestamp>\n" > + "<category scheme='http://schemas.google.com/g/ > 2005#kind'\n" > + "term='http://schemas.google.com/photos/ > 2007#album'></category>\n" > + "</entry>\n"; > but i got the error: > > HTTP/1.0 411 Length Required > > do you know how to fix it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
