Test result when requesting a getcapabilities document using http POST.

Test for a post request with key-value-pairs, applies to
mapserver/mapserver#4627
Distinguish between XML and KVP in POST requests.
Merge branch 'branch-6-2'