7 messages in com.googlegroups.bloggerdevRe: Using Curl with the new blogger f...| From | Sent On | Attachments |
|---|---|---|
| Richard | 13 Feb 2007 03:16 | |
| Pete Hopkins ☠ | 13 Feb 2007 10:22 | |
| Richard | 14 Feb 2007 03:33 | |
| Pete Hopkins ☠ | 14 Feb 2007 10:04 | |
| Richard | 15 Feb 2007 04:32 | |
| Pete Hopkins ☠ | 15 Feb 2007 10:34 | |
| Pete Hopkins ☠ | 15 Feb 2007 10:53 |
| Subject: | Re: Using Curl with the new blogger format![]() |
|---|---|
| From: | Richard (rgri...@gmail.com) |
| Date: | 02/15/2007 04:32:43 AM |
| List: | com.googlegroups.bloggerdev |
err, thanks. I saw the spec.
Since I dont know anything about html, xml, posting procedures etc, I'm sure that will be a great help....
"HTTP/1.1 400 Bad Request"
is as about as helpful as a chocolate teapot.
If you wake up on the right side of the bed, maybe you could check your own example code and comment in this thread on whether it works or not or whether its just a waste of time trying it.
I refer you to the specs :
http://www.atomenabled.org/developers/syndication/ http://code.google.com/apis/blogger/gdata.html
Not much to read there and reference to the detailed error report above.
"HTTP/1.1 400 Bad Request"
On Feb 14, 7:04 pm, "Pete Hopkins ☠" <phop...@google.com> wrote:
On 2/14/07, Richard <rgri...@gmail.com> wrote:
Hi,
I'm not sure about the part where you refer to "leaving it as an excercise". I am not familiar with using curl and certainly not google's authentication mechanism. When I run your script, I get (after authorization):
t
< HTTP/1.1 400 Bad Request < Content-Type: text/plain < Transfer-Encoding: chunked < Cache-control: private < Date: Wed, 14 Feb 2007 11:30:17 GMT < Server: GFE/1.3 * Connection #0 to host xxxxxx.blogspot.com left intact * Closing connection #0 org.xml.sax.SAXParseException: Content is not allowed in prolog.user@localhost:
Can you expand on what the file must contain please? Valid xml/html? Is that the cause of the error above?
I'll refer you to the Atom
spec:http://www.atomenabled.org/developers/syndication/
And the Blogger GData docs:http://code.google.com/apis/blogger/gdata.html
-- Pete
many thanks for the reply
On Feb 13, 7:23 pm, "Pete Hopkins ☠" <phop...@google.com> wrote:
On 2/13/07, Richard <rgri...@gmail.com> wrote:
I migrated my blog to the new google authorization model.
Can someone help me with just how to submit a post using "curl" or similar to the new blogger atom?
Search the group. I've posted sample code with curl in the past.
1) What is the url of the new posting service? Is it this line :
<link rel="service.post" type="application/atom+xml" title="The Shamrock Irish Bar - Atom" href="http://www.blogger.com/feeds/1234567/ posts/default" />
which I see in the page source for my blog?
Yes.
2) What content type must it be? atom+xml?
application/atom+xml
-- Pete




