Search This Site

Custom Search

Wednesday, August 11, 2010

[bloggerDev] Re: error publishing post on blogspot blog

On Aug 11, 11:07 pm, ritesh khare <ritesh.khare1...@gmail.com> wrote:
> hi ,
> I am using  php and curl to publish on blogspot but i am getting
> Google Error
> Length Required
> POST requests require a Content-length header.
>
> I am able to Get a Token , Able to exchange it with a Session token
> and able to index list of blogs.
> When i am trying to publish a post , i am using these details to post.
>
> Predefined variables
> $sessiontoken  -this is a AuthSub session token , received after
> exchanging with single-use AuthSub token.
> $blogID - id of my blog.
>
> $headers[0]  ="Content-type: application/atom+xml";
> $headers[1]="Authorization: AuthSub token=".$sessiontoken."";
>
> And making a post on this urlhttp://www.blogger.com/feeds/'. $blogID . '/posts/default'
>
> So what header do i need to include to make this work , not sure what
> i am doing wrong as this was working fine , few months ago.
I just checked the error , its
411 Length Required
Even after using header to pass content length , i am getting the same
error.
I am using localhost to post content.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

No comments:

Post a Comment