3 messages in com.googlegroups.bloggerdevRe: Problem posting to Blogger with Z...
FromSent OnAttachments
Harakiro09 Feb 2007 10:44 
Harakiro09 Feb 2007 15:01 
Pete Hopkins ☠11 Feb 2007 13:38 
Subject:Re: Problem posting to Blogger with Zend Gdata APIs
From:Harakiro (jle.@gmail.com)
Date:02/09/2007 03:01:33 PM
List:com.googlegroups.bloggerdev

Ok I solved the Issue.

I was passing the wrong blog ID yet for some odd reason it wasn't telling me this until i changed to using www2 as my uri.

Once I got the correct blogID in then I was getting a blogger error and it turns out that my xml I was sending blogger didnt like. I fixed this and everything is working fine.

There probably should be an change in the error response code when sending the wrong blogID to www but maybe this was just my experince.

Thanks,

Jesse

I'm able to retrieve the blog Authenticate Get a list of blogs

But posting...

XML I'm sending:

<?xml version="1.0"?> <entry xmlns="http://www.w3.org/2005/Atom"> <title mode="escaped" type="text/plain">test</title> <issued>2007-02-09T13:34:00-05:00</issued> <generator url="http://www.mydomain.com/">my poster</generator> <content type="application/xhtml+xml"> <div xmlns="http://www.w3.org/1999/xhtml">Testing the Atom API</ div> </content> </entry>

Header being sent TO blogger:

Array ( [0] => Host:www.blogger.com [1] => Connection: close [2] => Content-type: application/atom+xml [3] => User-agent: Zend_Http_Client [4] => Authorization: GoogleLogin auth=removed [5] => Content-length: 377 )

Response: Post to Google failed. Reason:

Response header: HTTP/1.1 400 Date: Fri, 09 Feb 2007 18:44:48 GMT Server: Apache Content-Length: 0 Connection: close Content-Type: text/plain Set-Cookie: NSC_cmphhfs-fyu=0a1401210050;Version=1;Max-Age=1800;path=/

Any ideas what I'm doing wrong? Everything seems to be correct?

Thanks,