MCPcopy Create free account
hub / github.com/adobe/Marinus / doHeaderLookup

Function doHeaderLookup

web_server/public/javascripts/headers.js:126–145  ·  view source on GitHub ↗
(header, zone)

Source from the content-addressed store, hash-verified

124}
125
126function doHeaderLookup(header, zone) {
127 let url;
128 if (headerSource === "censys") {
129 url = "/api/v1.0/censys/headers/" + header;
130 } else {
131 if (headerPort === "443") {
132 url = "/api/v1.0/zgrab/443/headers/" + header;
133 } else {
134 url = "/api/v1.0/zgrab/80/headers/" + header;
135 }
136 }
137 let query = "?distinct=1";
138
139 if (zone != null && zone !== "") {
140 query += "&zone=" + zone;
141 }
142 query += "&header_type=" + zgrab_http_headers[header];
143
144 make_get_request(url + query, displayHeaderSummary, [header, zone], "", []);
145}
146
147function headerLookupSelection(ev) {
148 clearErrorHandler();

Callers 2

headerLookupSelectionFunction · 0.85
updateFilterFunction · 0.85

Calls 1

make_get_requestFunction · 0.85

Tested by

no test coverage detected