2.6. Response Type

Although OpenShift supports both XML and JSON response formats, the default server response is the JSON syntax. Include the following HTTP header to receive the response in XML:
Accept: application/xml
Using Ruby

headers = {"Accept" => "application/xml"}

Using Python

request.add_header("Accept", "application/xml")

Using cURL

curl "https://openshift.redhat.com/broker/rest/api" -H "Accept: application/xml"