Parse key value pairs sent in POST body #4627

Closed
wants to merge 2 commits into
from

Projects

None yet

3 participants

@mkofahl
Contributor
mkofahl commented Apr 9, 2013

MapServer lacks support of reading KVP from a POST body. This got lost somewhere between 5.4 and 6.2.
I would prefer adding a new request method, e.g. MS_POSTKVP_REQUEST in order to avoid string comparison. Any opinions?

@tbonfort
Member
tbonfort commented Apr 9, 2013

@mkofahl can you either rebase this one or open a new PR with the rebased commits only? thanks

@mkofahl mkofahl added a commit to mapserver/msautotest_DEPRECATED that referenced this pull request Apr 10, 2013
@mkofahl @tbonfort mkofahl + tbonfort Test result when requesting a getcapabilities document using http POST.
Test for a post request with key-value-pairs, applies to
mapserver/mapserver#4627
5ceff95
@tbonfort tbonfort closed this Apr 10, 2013
@tbonfort
Member

rebased/squashed to master in 572aa67

@mkofahl
Contributor
mkofahl commented Apr 10, 2013

Should go in 6-2, too,

@mkofahl mkofahl reopened this Apr 10, 2013
@mkofahl mkofahl added a commit to mapserver/msautotest_DEPRECATED that referenced this pull request Apr 11, 2013
@mkofahl @tbonfort mkofahl + tbonfort Test result when requesting a getcapabilities document using http POST.
Test for a post request with key-value-pairs, applies to
mapserver/mapserver#4627
83f89a1
@mkofahl mkofahl added a commit that referenced this pull request Apr 11, 2013
@mkofahl @tbonfort mkofahl + tbonfort Parse key value pairs sent in POST body (#4627)
Backported from the master branch.

Conflicts:
	msautotest
307376c
@tbonfort
Member

backported to 6.2 in 307376c

@tbonfort tbonfort closed this Apr 11, 2013
@constantinius
Contributor

This segfaults when request->contenttype is set to NULL. I openend an issue (#4650)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment