When serving a POST from such a form (enctype being the default application/x-www-form-urlencoded):
<form method="post" action="dopost?file=afile_somewhere">
<input type="text" name="file" value="/tmp/foo.txt" />
<input type="submit" />
</form>
public Response serve(IHTTPSession session) {
System.out.println("Before: "+session.getParms());
if (session.getMethod() == Method.POST) {
Map<String,String> fics = new HashMap<>();
parseBody(fics);
System.out.println("After: "+session.getParms());
}
}
will show:
Before: {file=afile_somewhere}
After: {file=/tmp/foo.txt}
When serving a POST from such a form (
enctypebeing the defaultapplication/x-www-form-urlencoded):will show: