Option to store only response header #1215
-
Hi Team, I want to store only header response instead of full response body + header Could you implement this feature? Thanks Team, |
Beta Was this translation helpful? Give feedback.
Answered by
ehsandeep
Jun 7, 2023
Replies: 1 comment 7 replies
-
@bugoverflow0 you use json option to store response data and filter any field you want. echo google.com | httpx -json -irr -silent | jq .header
{
"alt_svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"cache_control": "public, max-age=2592000",
"content_length": "220",
"content_security_policy_report_only": "object-src 'none';base-uri 'self';script-src 'nonce-vtxOmWS57jqHIizyKO76LQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp",
"content_type": "text/html; charset=UTF-8",
"date": "Wed, 07 Jun 2023 10:29:29 GMT",
"expires": "Fri, 07 Jul 2023 10:29:29 GMT",
"location": "https://www.google.com/",
"origin_trial": "Ap+qNlnLzJDKSmEHjzM5ilaa908GuehlLqGb6ezME5lkhelj20qVzfv06zPmQ3LodoeujZuphAolrnhnPA8w4AIAAABfeyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJQZXJtaXNzaW9uc1BvbGljeVVubG9hZCIsImV4cGlyeSI6MTY4NTY2Mzk5OX0=, AvudrjMZqL7335p1KLV2lHo1kxdMeIN0dUI15d0CPz9dovVLCcXk8OAqjho1DX4s6NbHbA/AGobuGvcZv0drGgQAAAB9eyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJCYWNrRm9yd2FyZENhY2hlTm90UmVzdG9yZWRSZWFzb25zIiwiZXhwaXJ5IjoxNjkxNTM5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=",
"permissions_policy": "unload=()",
"server": "gws",
"x_frame_options": "SAMEORIGIN",
"x_xss_protection": "0"
} |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
MetzinAround
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bugoverflow0 you use json option to store response data and filter any field you want.