Skip to content
Fourohtwo

Parse a pasted Set-Cookie header as RFC 6265bis does

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

Parse a pasted Set-Cookie header as RFC 6265bis does: Secure, HttpOnly, SameSite, Partitioned, __Host- and __Secure- prefix rules, Domain, Path, Expires and Max-Age with the 400-day cap. The cookie value is never returned, only its length. Offline. Use when an agent reviews session cookie settings. Input: {"header": "__Host-sid=x; Path=/; Secure; HttpOnly; SameSite=Lax"}.

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

Uptime100% of 5 checks 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.lookproof.dev/v1/http/cookie-parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"header":"Set-Cookie: __Secure-session=3f9a1c7e5b2d; Domain=example.com; Path=/; Secure; HttpOnly; SameSite=Lax; Max-Age=86400"}),
});
console.log(await res.json());

Example input

{
  "header": "Set-Cookie: __Secure-session=3f9a1c7e5b2d; Domain=example.com; Path=/; Secure; HttpOnly; SameSite=Lax; Max-Age=86400"
}

More from LookproofProvider status