silverstripe-framework/tests/api
Daniel Hensby f003359047 RestfulService_Response now gets response headers
Before now, the RestfulService_Response object was never sent the
response headers. For APIs that rely on the response headers to send
back information (signatures, pagination info, etc).

This change makes the curl response have the full HTTP response
(including Headers). We then extract the body and the header information
and assign them to relevant vars and then construct the response as
before (with the addition of the headers array).

This change required two new functions:
extractResponse: This extracts the HTTP Headers and the payload from the
curl response and assigns it to the relevany vars that are passed by
reference
parseRawHeaders: This was designed to mimic http_parse_headers (a
non-standard php class). It converts the headers into an associative
array.
2013-02-15 11:45:36 +00:00
..
RestfulServiceTest.php RestfulService_Response now gets response headers 2013-02-15 11:45:36 +00:00
RSSFeedTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
XMLDataFormatterTest.php SimpleXML string casting in tests for older PHPUnit 2012-12-17 15:52:01 +01:00
XMLDataFormatterTest.yml ENHANCEMENT XMLDataFormatter::convertDataObjectWithoutHeader() now escapes HTML fields using CDATA (thanks random-value!) 2010-12-20 04:51:24 +00:00