fs-geofs/geofsdisplay

Fahrplan broken

christophfriedrich opened this issue · 2 comments

It appears that Stadtwerke Münster have changed the layout of what they return from their /fis/ endpoint (example request) -> header layout in display is broken and instead of bus timetables there are four inputs with the digit 0 in them -- not very informative 😕

Found the bug: http requests are forwarded to https, but in that process /ajaxrequest.php is reset to /. That endpoint returns the (more or less) fancy Stadtwerke webapp (i.e. a full webpage with <html>...</html> etc.), while we relied on the HTML snippets (<span>...) that are returned from the ajaxrequest.php script.

URL we request so far: http://www.stadtwerke-muenster.de/fis/ajaxrequest.php?mastnr=5992
Is now forwarded to: https://www.stadtwerke-muenster.de/fis/?mastnr=5992

We're lucky: If one adds the s we still get the output we used to get: https://www.stadtwerke-muenster.de/fis/ajaxrequest.php?mastnr=5992 -> simple fix

Meanwhile the redirection has been corrected by Stadtwerke so that the endpoint is not changed and the bug disappeared, but I will switch our request over to HTTPS anyways.