Skip to content

Submitted XML POST data is stripped of markup #371

@spemberton

Description

@spemberton

I posted something along the lines of this (details might slightly differ)

POST / HTTP/1.1
Connection: keep-alive
Content-Type: application/xml
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,nl-NL;q=0.8,nl;q=0.6,en-US;q=0.4,en;q=0.2
Origin: http://homepages.cwi.nl
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Dnt: 1
Referer: http://homepages.cwi.nl/~steven/forms/examples/michiel3.xml
Content-Length: 907

predictionThe web failsNot yet...

Sorry.W3C5I like this formotherHello mum!5ISOC W3Ctechnical+31steven@pemberton.nltrueTim Berners-Leetimbl@w3.orgFred Bloggsfred@blogs.netNoWeb wouldn't fail!About a yearParallelUK govtPeople
Money
Wine

and got back

{ "args": {}, "data": "predictionThe web failsNot yet\n\nSorryW3C5I like this formotherHello mum!ISOC W3C+310steven@pemberton.nltrueTimbltimbl@w3.orgFred Bloggsfred@bloggs.net", "files": {}, "form": {}, "headers": { "Accept": "text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8,nl-nl;q=0.7,nl;q=0.6,fr;q=0.5", "Connection": "close", "Content-Length": "654", "Content-Type": "application/xml", "Host": "httpbin.org", "Origin": "http://homepages.cwi.nl", "Referer": "http://homepages.cwi.nl/~steven/forms/examples/michiel3.xml", "User-Agent": "Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.16" }, "json": null, "origin": "82.161.119.74", "url": "http://httpbin.org/post" }

In other words, for an XML POST the data: field of the returned values has been stripped of its markup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions