We're running a Web Agent and when the form html page send headersas :
<form method="post" action="https://mymachine.mydomain.com/search.do"> <input type="hidden" name="userid" value="<%=uid%>"><input type="hidden" name="myvariable1" value="<%=myvariable1%>"/><input type="hidden" name="myvariable2" value="<%=myvariable2%>"/></form>
the headers and values for userid, myvariable1, myvariable12, aren'treaching the target page https://mymachine.mydomain.com/search.do. So
that pages reports the values as null.
I'd like to know why.
From the Fiddler traces, we see the header passed to the back endserver on a POST action. But the server replies with return code 301to make the URL https instead of http. This redirection is culprit ofthe lost of the header values.
You should take note of the following. If you POST header to a page,the next redirected page won't get these headers. Only the page youPOST to will have.
Apache 301 Redirect and preserving post data
"POST data is discarded on redirect as a client will perform a GETrequest to the URL specified by the 301. Period."
Configure your Web Server in order to accept only https requests inorder to avoid the 301 return code to solve this issue.
KB : KB000119972