3 messages in com.googlegroups.bloggerdevRe: [bloggerDev] Re: Problem posting ...| From | Sent On | Attachments |
|---|---|---|
| Harakiro | 09 Feb 2007 10:44 | |
| Harakiro | 09 Feb 2007 15:01 | |
| Pete Hopkins ☠ | 11 Feb 2007 13:38 |
| Subject: | Re: [bloggerDev] Re: Problem posting to Blogger with Zend Gdata APIs![]() |
|---|---|
| From: | Pete Hopkins ☠ (phop...@google.com) |
| Date: | 02/11/2007 01:38:36 PM |
| List: | com.googlegroups.bloggerdev |
On 2/9/07, Harakiro <jle....@gmail.com> wrote:
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.
Hrm... we must not be proxying the error message correctly. Thanks for the find. I'll try to get this fixed.
-- Pete
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
On Feb 9, 1:45 pm, "Harakiro" <jle....@gmail.com> wrote:
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,
Jesse




