GET HTTP Headers

Request and response headers can obtained for each object requested. When requesting details for an object, the API includes the discovery attribute headersUri for where to get the header from.

Request

Method GET
Path /headers?object=object_sref
Header

Realm: account_realm

Authorization: Bearer access_token

The sref for the object must be URL encoded, so your request will look something like this:

Path /headers?object=objects%2F456789

Response

The response contains a requestHeader and responseHeader, each of which contains an array of header items that's split into name and value pairs.

Body

"results": {

"requestHeader": [

{

"name": "Request Line",

"value": "GET / HTTP/1.1"

},

{

"name" : "Accept",

"value" : "text/html,application/xhtml+xml,application/xml"

},

...

],

"responseHeader": [

{

"name": "Status Line",

"value": "HTTP/1.1 200 OK"

},

{

"name" : "Accept-Ranges",

"value" : "bytes"

},

...

]

}

 

This topic was last updated on August 19, 2021, at 03:30:47 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant