Hallo,
Bei mir funktioniert das weiterleiten nicht auf eine andere Seite.
Unter Elemente Untersuchen => Netzwerk => [haupt html datei] => Andwordkopfzeile steht der Eintrag
Location: "http://localhost:9998/login"
ich habe es schon mit http://google.de probiert es hat leider nicht geklappt.
Ich denke ich habe alles gemacht wie auf http://localhost:9998/login.
Das ist der Http-Header den der Browser sendet:
Code
POST /login/do HTTP/1.1
Host: localhost:9998
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
Referer: http://localhost:9998/login
Connection: keep-alive
Upgrade-Insecure-Requests: 1
name=david&pw=pass
Alles anzeigen
Das ist die Antwort:
HTTP
HTTP/1.1 200
Server: Test Web Server/1.2 (Java)(Unix/Linux)
Date: Mi, 17 Mai 2017 16:34:06 GMT
X-Powered-By: Java/1.8.0_131
Set-Cookie: id=pQv19l22iJE7h920////127.0.0.1///2017/05/17 18:34:06; Path=/
Location: http://localhost:9998/files
Ich habe keine Idee warum der Browser nicht weiterleitet.
Vielen Dank im Vorraus.