Skip to content
Fourohtwo

Parse a pasted Strict-Transport-Security value as RFC 6797 does

api.lookproof.dev/v1/http/hsts-parse

Parse a pasted Strict-Transport-Security value as RFC 6797 does: whether browsers accept it, max-age, includeSubDomains, preload, and which hstspreload.org header rules it meets. Offline. Use when an agent sets up HSTS or prepares a preload submission. Input: {"header": "max-age=31536000; includeSubDomains; preload"}.

BaseAnswering
POSThttps://api.lookproof.dev/v1/http/hsts-parse

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.lookproof.dev/v1/http/hsts-parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"header":"max-age=63072000; includeSubDomains; preload"}),
});
console.log(await res.json());

Example input

{
  "header": "max-age=63072000; includeSubDomains; preload"
}

More from Lookproof