8 messages in com.googlegroups.bloggerdevRe: 411 Length Required| From | Sent On | Attachments |
|---|---|---|
| Stephen Downes | 06 Apr 2007 12:04 | |
| Pete Hopkins ☠ | 06 Apr 2007 13:26 | |
| Stephen Downes | 06 Apr 2007 14:53 | |
| Pete Hopkins ☠ | 06 Apr 2007 15:43 | |
| Stephen Downes | 06 Apr 2007 17:43 | |
| Stephen Downes | 08 Apr 2007 05:38 | |
| Pete Hopkins ☠ | 09 Apr 2007 15:13 | |
| Stephen Downes | 10 Apr 2007 15:09 |
| Subject: | Re: 411 Length Required![]() |
|---|---|
| From: | Stephen Downes (step...@downes.ca) |
| Date: | 04/06/2007 02:53:23 PM |
| List: | com.googlegroups.bloggerdev |
The URL is http://www2.blogger.com/feeds/11679714/posts/default
Had lots of fun with the authentication and the redirect from http://www.blogger.com/feeds/11679714/posts/default
The authentication is in the header and not in the xml.
I am setting the headers with:
my $ct = 'Content-Type'; my $cl = 'Content-Length'; $bua->default_header($ct => 'application/atom+xml'); $bua->default_header(Authorization => $authtoken); $bua->default_header(Content => $xml); $bua->default_header($cl => length $xml);
The headers should be coming out like this (I am confident that they are, since I am authenticating OK, but if you know of a URL I can try to get the exact headers I am sending, that would be appreciated):
POST /feeds/11679714/posts/default Host: www2.blogger.com Content-Type: application/atom+xml; charset=utf-8 Content-Length: 483 Authentication: AuthSub token="XXXXXXXXX"
<?xml version="1.0" encoding="utf-8"?> <entry xmlns='http://www.w3.org/2005/Atom'> <title type='text'>Marriage!</title> <content type='xhtml'> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Mr. Darcy has <em>proposed marriage</em> to me!</p> <p>He is the last man on earth I would ever desire to marry.</p> <p>Whatever shall I do?</p> </div> </content> <author> <name>Stephen Downes</name> <email>$username</email> </author> </entry>
On Apr 6, 5:27 pm, "Pete Hopkins ☠" <phop...@google.com> wrote:
Can you send the contents of the XML that you're POSTing to Blogger, along with the URL you're using? (Though please x out the auth token itself, for privacy)
-- Pete
On 4/6/07,StephenDownes<step...@downes.ca> wrote:
I've seen this come up in other discussions, with no solution ever posted.
Like the others, I am receiving the '411 Length Required' error despite a Content-Length being properly placed in the headers.
I am attempting to create Blogger entries using a Perl script (Google's recent changes have rendered Net::Blogger and XML::Atom obsolete, and I haven't found anything else that works).
Anyhow - if anybody can solve the 411 problem for me (or can point to a working Perl client that works with Blogger) please let me know.
--Stephen




