Hi Stefano,<br><br>> GET and POST are just two methods to pass name/value variables from <br>> the client to the http server. there are also at least two different <br>> POST encodings: plain and multipart. they encode data in differently <br>
> way but the result is the same: they pass name/value pairs to the <br>> server and you need to change your code to swap from a method to the <br>> other. <br><br>~ Ok. <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5"></a>(see also <a href="http://www.cs.tut.fi/%7Ejkorpela/forms/methods.html">http://www.cs.tut.fi/~jkorpela/forms/methods.html</a>) <br>
<br> <br>> I can't see any reason or advantage about knowing where those <br>> variables are coming from, your application will work properly in any <br>> way because KLone exports all variables in the same consistant way. <br>
<br>~ It's a part of the problem, it's a constraint. <br><br>(See <span style="font-weight: bold;">track_vars</span> in PHP from version 4.0.3) <br><br> <br><br>> I don't think either that this is a security issue because form <br>
> variables are ALWAYS unsafe, the attacker can modify GET variables and <br>> POST variables as he likes, the server has no control on that. to stay <br>> safe the server must always validate user inputs before using it. <br>
> Am I missing something? <br><br><br>I take my previous example : <br><br> ========================================= <br><br> <form method="POST" action="index.kl1?vara=getvara&varb=getvarb&send=Send"> <br>
<input type="hidden" name="vara" value="postvara" /> <br> <input type="hidden" name="varb" value="postvarb" /> <br> <input type="submit" name="send" value="Send" /> <br>
</form> <br><br> =========================================<br><br> <br> <br><br>When my page is executed, the values "vara" and "varb" are not correct : <br><br> ========================================= <br>
<br> vara=getvara <br> varb=getvarb <br> send=Send <br><br> =========================================<br><br><br>My form (=> HTTP method) is POST, but the POST values have been overwritten by the GET values.<br>
"request_get_method()" function return "3" (==POST) and "request_get_var()" function return GET values. There is a contradiction.<br> <br> <br><br>Problem when : <br><br>1) The action form (URI) OR (hidden) post values are changed in JavaScript (client-side). <br>
<br><br>2) When action form are dynamically set from externals sites (URI point to my site). <br><br><br>3) This way is fully compatible with proxy-cache ?<br> <a href="http://www.cs.tut.fi/%7Ejkorpela/forms/methods.html"></a><br>
<br>-- <br>Mickaël AUGER<br><a href="mailto:mickael.auger@gmail.com">mickael.auger@gmail.com</a>