Mozile

Saving : HTTP POST tests

Return to main index

You can "save" each page via HTTP POST and check the server response. All the tests are written using PHP but you could use any other server side language.


XHTML Test file: application/xhtml+xml, iso-8859-1

POST TargetHTTP StatusstatusdisplayNotes

save_201.php 201 Created1-Save OK
save_204.php 204 No Content1-Save OK
save_ok.php 200 OK1-Save OK
save_warning.php 200 OK1yesSave OK with Warning
save_error.php 200 OK2-Save Error
save_display_no.php 200 OK123noSave Error
save_parse_error.php 200 OK1-Parse Error (Unable to tell save was OK)
save_html.php 200 OK1-Invalid HTML Response (Unable to tell save was OK)

Edit the test document and save it. The POSTed data is returned in the server response.
save_dump.php 200 OK1yesReturn save info for debugging. (Save OK)

The above tests use XHTML responses. This is an example of a minimal XML response.
save_xml_error.php 200 OK4-Save Error