POST-String einer Webanfrage in HTML umwandeln
Die folgende Javascript-Anwendung wandelt einen POST-String einer Webanfrage in HTML-Zeichen um. Das ist die Vorbereitung um ein POST request als Bookmark / Lesezeichen zu speichern:
Beispiel
Das folgende Beispiel ist eine POST-Anfrage bei der BVG für die Haltestelle Piesporter Straße Richtung Pankow. Durch Kopieren der Werte in die oberen Felder wird eine HTML-Seite generiert, die zur Anfrage bei der BVG benutzt werden kann.
URL:
https://fahrinfo.bvg.de/Fahrinfo/bin/query.bin/dn?ld=0.1&protocol=https:&OK#trOverviewC0-0
POST-Daten:
queryPageDisplayed=yes&ignoreMethodCheck=yes&HWAI%3DJS%21ajax=yes&HWAI%3DJS%21js=yes&REQ0JourneyStopsS0GMap=&REQ0JourneyStopsS0ID=&REQ0JourneyStopsS0G=Piesporter+Str.+%28Berlin%29&REQ0JourneyStopsS0ID=A%3D1%40O%3DPiesporter+Str.+%28Berlin%29%40X%3D13476708%40Y%3D52560485%40U%3D80%40L%3D9140001%40B%3D1%40p%3D1485435190%40&REQ0JourneyStopsS0F=distinguishPerimeterFilter%3B13400299%3B52516597%3B10&REQ0JourneyStopsS0A=1&REQ0JourneyStopsZ0G=S%2BU+Pankow+%28Berlin%29&REQ0JourneyStopsZ0ID=A%3D1%40O%3DS%2BU+Pankow+%28Berlin%29%40X%3D13412283%40Y%3D52567281%40U%3D80%40L%3D9130002%40B%3D1%40p%3D1485435190%40&REQ0JourneyStopsZ0F=distinguishPerimeterFilter%3B13400299%3B52516597%3B10&REQ0JourneyStopsZ0A=1&REQ0JourneyDate=Mi%2C+15.02.17&HTML5_DATE=2017-02-15&wDayExt0=Mo%7CDi%7CMi%7CDo%7CFr%7CSa%7CSo&REQ0JourneyTime=23%3A21&REQ0HafasSearchForw=1&start=Verbindung+suchen&REQ0JourneyProduct_prod_list_6=0000001000000000&REQ0JourneyProduct_prod_list_0=1000000000000000&REQ0JourneyProduct_prod_list_1=0100000000000000&REQ0JourneyProduct_prod_list_2=0010000000000000&REQ0JourneyProduct_prod_list_3=0001000000000000&REQ0JourneyProduct_prod_list_4=0000100000000000&existBikeEverywhere=yes&REQ0HafasNoOfChanges=1000%3A1&REQ0JourneyDep_Foot_enable=1&existIntermodalDep_enable=yes&REQ0JourneyDest_Foot_enable=1&existIntermodalDest_enable=yes&REQ0JourneyDep_Foot_minDist=0&REQ0JourneyDep_Foot_maxDist=1500&REQ0JourneyDep_Foot_speed=100&REQ0JourneyDep_Bike_minDist=0&REQ0JourneyDep_Bike_maxDist=5000&REQ0JourneyDep_Bike_speed=100&REQ0JourneyDep_KissRide_minDist=2000&REQ0JourneyDep_KissRide_maxDist=50000&existTotal_enable=yes&application=PRIVATETRANSPORT&REQ0Total_Foot_enable=1&REQ0Total_Foot_minDist=0&REQ0Total_Foot_maxDist=2000&REQ0Total_Foot_speed=100