Expose Response Headers

Expose Response Headers 1.0.1 CRX for Chrome

A Free Developer Tools Extension

Published By Alexander Kuzmenok

Expose Response Headers (omlflgllokdkamhdgiaalffaeopelagg): Expose the page response headers to Navigator object to make them available from Selenium and other web drivers... Read More > or Download Now >

Expose Response Headers for Chrome

Download CRX

Download

20.04 KB

Chrome Store

Tech Specs

  • • Type: Browser Extension
  • • Latest Version: 1.0.1
  • • Price: Freeware
  • • Offline: No
  • • Developer: Alexander Kuzmenok

User Reviews

  • 0 Votes, Average: 0 out of 5
  • • Rating Average
  • 0 out of 5
  • • Rating Users
  • 0

Download Count

  • • Total Downloads
  • 0
  • • Current Version Downloads
  • 0
  • • Updated: March 2, 2017

Expose Response Headers is a free Developer Tools Extension for Chrome. You could download the latest version crx file and install it.

More About Expose Response Headers

Expose Response Headers Screenshot Image
This is a technical extension to be used with web drivers like Selenium. It adds the so-needed functionality like providing response headers and response status code for requested urls. The available items go to Navigator object, under following properties:

navigator.requestHeaders = ;
navigator.requestUrl = ;
navigator.requestMethod = ;
navigator.responseHeaders = ;
navigator.responseStatusCode = ;
navigator.responseStatusLine = ;
navigator.responseUrl = ;
navigator.responseMethod = ;

To get those values, you typically need to get them by running a javascript in a page context, and returning the result. In Selenium, it would look something like this:

var builder = new selenium.Builder().withCapabilities(selenium.Capabilities.chrome());
var options = new selenium_chrome.Options();
options.addExtensions(__dirname + "/response-headers.crx");
builder.setChromeOptions(options);
var page = builder.build();
page.then(function() {
// load your url here
}, function(err) {
// error creating browser
});

/// then somewhere after loading the url, you would do
page.executeScript(function() {
return {
statusCode: navigator.responseStatusCode
}
}).then(function(obj) {
// now you have obj.statusCode
});

Gist example: https://gist.github.com/javascriptlove/4a00c4931c4c83287f4efd6c23fd02ed

Download Expose Response Headers 1.0.1

More Extensions to Consider (Similar or Related)