Search This Site

Custom Search

Monday, January 10, 2011

[bloggerDev] Having trouble accessing rss files

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.

No comments:

Post a Comment