How to get the feed URL(s) from a website?
问题 As per the official documentation, properly setup websites should indicate the URL of their RSS / Atom feed(s) when asked politely: GET / HTTP/1.1 Host: example.com Accept: application/rss+xml, application/xhtml+xml, text/html When an HTTP server (or server-side script) gets this, it should redirect the HTTP client to the feed. It should do this with an HTTP 302 Found. Something like: HTTP/1.1 302 Found Location: http://example.com/feed I'm trying to get this response, without luck: request(