You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one specific feed ( https://www.codingblocks.net/podcast-feed.xml ) which does some user agent filtering in the backend which will redirect all user agents from automated tools (e.g. curl) to a 403 error page instead of generating the feed.
This also means that castget cannot fetch the feed correctly.
It would be nice to have an option (either in castgetrc, as per feed option or as command line argument) to specify a custom user agent that will be used to fetch the feed.
In case the feed above changes, here is an example that illustrates the problem outside of castget:
$ curl 'https://www.codingblocks.net/podcast-feed.xml' | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 344 100 344 0 0 262 0 0:00:01 0:00:01 --:--:-- 262
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /podcast-feed.xml
on this server.<br />
</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
$ curl -H 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1' 'https://www.codingblocks.net/podcast-feed.xml' | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 419k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
7 419k 7 32768 0 0 31477 0 0:00:13 0:00:01 0:00:12 31477
The text was updated successfully, but these errors were encountered:
I have one specific feed ( https://www.codingblocks.net/podcast-feed.xml ) which does some user agent filtering in the backend which will redirect all user agents from automated tools (e.g. curl) to a 403 error page instead of generating the feed.
This also means that castget cannot fetch the feed correctly.
It would be nice to have an option (either in
castgetrc
, as per feed option or as command line argument) to specify a custom user agent that will be used to fetch the feed.In case the feed above changes, here is an example that illustrates the problem outside of castget:
The text was updated successfully, but these errors were encountered: