Search This Site

Custom Search

Monday, January 10, 2011

Re: [bloggerDev] Having trouble accessing rss files

I'm wondering why you are POSTing to /rss.xml ? GET works.

$ curl http://someone.blogspot.com/rss.xml | tidy -xml -quiet -indent
<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
  <id>tag:blogger.com,1999:blog-3259189</id>
  <updated>2010-11-15T00:15:21.031-08:00</updated>
  <title type='text'></title>
  <subtitle type='html'>O t&#195;&#173;tulo n&#195;&#163;o diz
  tudo?</subtitle>
  type='application/atom+xml'
  <link rel='self' type='application/atom+xml'
  <link rel='alternate' type='text/html'
  <link rel='hub' href='http://pubsubhubbub.appspot.com/' />
  <author>
    <name>Thiago</name>
    <email>noreply@blogger.com</email>
  </author>
  <generator version='7.00' uri='http://www.blogger.com'>
  Blogger</generator>
  <openSearch:totalResults>4</openSearch:totalResults>
  <openSearch:startIndex>1</openSearch:startIndex>
  <openSearch:itemsPerPage>25</openSearch:itemsPerPage>
  <entry>
...

On Tue, Jan 11, 2011 at 9:14 AM, Sam Auciello <olleicua@gmail.com> wrote:
I'm trying to make a python script that checks various blogs etc for
me.  I'd use an ordinary rss reader but some blogs / sites do not have
rss feeds so I'm building my own partly for convenience and partly as
an exercise.  Anyway, I'm using urllib2 and having trouble accessing
the blogspot feeds.  I get the following http headers:

send: u'POST /rss.xml HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-
Length: 0\r\nHost: someblog.blogspot.com\r\nAccept: application/rss+xml
\r\nUser-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10\r\nConnection: close\r
\nContent-Type: application/x-www-form-urlencoded\r\n\r\n'
reply: 'HTTP/1.1 415 Unsupported Media Type\r\n'
header: Content-Type: text/html; charset=UTF-8
header: Date: Mon, 10 Jan 2011 21:49:20 GMT
header: Expires: Mon, 10 Jan 2011 21:49:20 GMT
header: Cache-Control: private, max-age=0
header: X-Content-Type-Options: nosniff
header: X-XSS-Protection: 1; mode=block
header: Server: GSE
header: Connection: close

Why do I see "HTTP/1.1 415 Unsupported Media Type" despite specifying
Accept: "application/rss+xml"?

--
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.




--
Brett Morgan

Developer Programs Engineer, Blogger

--
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