Skip to main content

๐Ÿ“ธ Capture

The capture feature in Kitsec allows you to intercept requests to a specified URL and capture the request headers. It also extracts the hostname, path, and cookies from the request.

To capture requests to example.com, you can use the following command:

kitsec capture https://example.com

The output will display the request headers, response headers, and any missing headers. The output for the above command will be:

Copy code
GET /mynetwork/ HTTP/1.1
Host: www.website.com
Accept-Encoding: gzip, deflate, br
Accept: */*
Connection: keep-alive
Cookie: bcookie="v=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
lang=v=2&lang=en-us;
li_gc=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
lidc="b=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
JSESSIONID=ajax:xxxxxxxxxxxxxxxxxx;
bscookie="v=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response headers:
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Length: 7486
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Vary: Accept-Encoding
Content-Security-Policy: default-src *; connect-src 'self' *.domain etc etc etc *
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Expect-CT: max-age=86400, report-uri="https://www.website.com/platform-telemetry/ct"
X-Li-Fabric: prod-lzx7
X-Li-Pop: azd-prod-lzx7-x
X-Li-Proto: http/1.1
X-LI-UUID: AAX2TIh6unm3s+DezlC6rw==
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: BB20069DED8C4CF68A735496B4DAFD79 Ref B: PAR02EDGE0721 Ref C: 2023-03-07T10:04:11Z
Date: Tue, 07 Mar 2023 10:04:11 GMT

Missing headers:
X-XSS-Protection, X-Content-Type-Options, Strict-Transport-Security, Content-Security-Policy, Referrer-Policy, Feature-Policy

Subscribe for product updates

By subscribing, you agree with our Terms and Privacy Policy.