Extended the post_request.sh script with JSON or XML request testing options