php - How do I handle extra headers appended to top of file via PUT? -
i developing api using php.
i accepting xml file via put request.
developing app postman see following:
------webkitformboundary0asxhcjef0dqxs1p content-disposition: form-data; name=""; filename="books.xml" content-type: text/xml <?xml version="1.0"?> <catalog> <book id="bk101"> <author>gambardella, matthew</author> <title>xml developer's guide</title> <genre>computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>an in-depth @ creating applications xml.</description> </book> ... </catalog> ------webkitformboundary0asxhcjef0dqxs1p--
i've brought in via echo file_get_contents("php://input")
.
can intercept or sanitize data appears webkit?
form data html forms, not apis. have done <input type="file">
.
either select raw
or binary
.
Comments
Post a Comment