mirror of
https://github.com/ariya/phantomjs.git
synced 2024-09-19 16:48:07 +03:00
1411ebdff6
For POST and PUT request we now read all data as defined by the Content-Length header into request.rawData property. This property is a QByteArray which neatly maps to an array in javascript. For POST requests with Content-Type = applicaiton/x-www-form-urlencoded we furthermore provide a parsed, easy-to-use request.post property. This one is a QVariantMap of the decoded form data. There is a new postserver.js example that shows the usage. The unit test is extended to test the new (and old) features of the server. TODO: test that verifies proper decoding of UTF8 data, which is not yet possible since I see no way to do a post-request using phantomjs with an explicitly defined charset ISSUE: 340 (http://code.google.com/p/phantomjs/issues/detail?id=340) |
||
---|---|---|
.. | ||
lib | ||
fs-spec-01.js | ||
fs-spec-02.js | ||
fs-spec-03.js | ||
fs-spec-04.js | ||
module-spec.js | ||
phantom-spec.js | ||
run-tests.js | ||
webpage-spec.js | ||
webserver-spec.js |