Open hbruch opened 1 year ago
Habe das Problem heute per Mail an den VRR gemeldet.
Mit wget lässt sich der permanente Link nutzen.
Mit wget lässt sich der permanente Link nutzen.
Das liegt daran, dass wget
die via Set-Cookie
-Response-Header gesetzten Cookies nach einer Weiterleitung wieder mitsendet.
curl
macht das standardmäßig nicht, sondern nur mit -b ''
. Alternative lässt sich mittels -H 'Cookie: fe_typo_user=wasverified; path=/
das vom Server gesetzte Cookie emulieren.
Cookies sind also nach wie vor erforderlich, obwohl eigentlich keine Funktion erfüllen. Wir schlagen vor, einen Zugriff ohne gesetztes Cookie zu erlauben.
FYI: @juliuste mirrors the official DELFI GTFS & NeTEx feeds here to allow for less limited machine access:
https://data.public-transport.earth/gtfs/de
https://data.public-transport.earth/netex/de
Seit einiger Zeit bietet https://www.opendata-oepnv.de/ einen Permalink-Mechanismus an, um Datensätze unter gleichbleibender URL herunterladen zu können.
Angemeldete Nutzende können über einen Download-Link generieren, über den bis zu 5 mal pro Woche der Datensatz abrufbar sein solle.
Die Umsetzung erfolgt offenbar über ein 303-Redirect und scheint die Existenz von Cookies vorauszusetzen. Ein automatisierter Download über
curl
liefert statt des Datensatzes eine HTML-Seite zurück.Darüber hinaus wird anstatt in der Folge statt einer Rückmeldung eines
403 Forbidden
Fehlers eine Webseite mit Return Code200
zurückgeliefert. Dies entspricht nicht gängigen Web-Standards.