oho ,It's a misstake in Google Base Code Api document.

in the doc:
http://code.google.com/apis/base/protodevguide.html

all sample code is like :

PUT /base/feeds/items/...
Content-Type: application/atomxml
Authorization: AuthSub token=...
X-Google-Key: key=...

the Content-Type:Application/atomxml is not accept by google server,
it should be:
Content-Type: application/atom+xml





On 10月29日, 下午4时34分, dakaola <[EMAIL PROTECTED]> wrote:
>  when I post a conten to the  addr, and return a
> "HTTP 415 Unsportted Media Type"
>
> the post addris :
>
> POST /base/feeds/items
> ontent-Type: application/atomxml
> ....
>
>  the content is :
>
> <?xml version='1.0'?>
> <entry xmlns='http://www.w3.org/2005/Atom'
>  xmlns:g='http://base.google.com/ns/1.0'>
>  <author>
>  <name>dakaola</name>
>  <email>[EMAIL PROTECTED]</email>
>  </author>
>  <title type="text">kaolatesttest</title>
>  <content type="xhtml">
>  <b></b>
>  <ul>
>  <li>have a test</li>
>  </ul>
> </content>
>  <g:item_language type="text">en</g:item_language>
> </entry>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to