3 messages in com.googlegroups.bloggerdevRe: Error 400 (Bad Request) on commen...
FromSent OnAttachments
Victor Hadianto25 Jan 2008 11:20 
Victor Hadianto27 Jan 2008 05:25 
Jeff Scudder28 Jan 2008 16:56 
Subject:Re: Error 400 (Bad Request) on comment posting.
From:Jeff Scudder (j.@google.com)
Date:01/28/2008 04:56:13 PM
List:com.googlegroups.bloggerdev

On Jan 27, 5:25 am, Victor Hadianto <vhad@gmail.com> wrote:

I've been tearing my hair out on this problem. I'm sure it's something really silly. Basically I'm trying to post comment to a post using .NET and this is the code that I'm using:

Ah I found the problem. Seems like Blogger chucks a fit when the comment body contains HTML tags. I removed all the HTML tags and it's working OK now.

Hi Victor,

I think you should be able to post comments which contain HTML markup. I sent an entry with a content of type "html" and the text node was <b>ok</b>. It posted successfully and showed ok in bold. If I escape the < and > like this: &lt;b&gt;ok/&lt;b&gt; the comment shows <b>ok</ b> and it is not in bold. The br tag did seem to cause errors though, so this seems to be a special case. Blogger will take newline characters and convert them into line breaks, so you can work around this by replacing the <br> tag with a newline character.

Happy coding,

Jeff