Check HTTP status code #7
Labels
Feature request
New feature or request
Good first issue
Good for newcomers
Hacktoberfest
Help wanted
Extra attention is needed
Context
A while ago the weekend markets URL in the open data portal changed. As a result the webserver redirected from
https://daten.berlin.de/datensaetze/wochen-und-trödelmärkte
tohttps://daten.berlin.de/datensaetze/wochen-und-tr%C3%B6delm%C3%A4rkte-0
when requesting the former. This was not noticed by the shell script because there are also dates shown. By coincidence the date matched with the date of the current deployment of https://wo-ist-markt.de/#berlin.Proposal
To verify that the expected URL is still valid the shell script could check the HTTP status code returned by the webserver.
If the webserver returns something else than
200
an error can be raised.Related
The text was updated successfully, but these errors were encountered: