Kod
<form action="/foo/bar" method="post">
tyle, że bez niego.
Żeby wysłać POSTa wystarczy
Kod
POST /foo/bar HTTP/1.1
Host: localhost
Content-Length: 9
var=value
Host: localhost
Content-Length: 9
var=value
Żeby przejść na inny adres
Kod
Location: /foo/bar
A żeby połączyć te dwie operacje?
Jeśli pośle to razem, jednym headerem, najpierw location potem post, lub na odrwót to dostaje:
Header may not contain more than a single header, new line detected
Jeśli osobnymi, najpierw post potem location to też to tak nie działa.