Skip to content

Option to store only response header #1215

Closed Answered by ehsandeep
bugoverfl0w asked this question in Q&A
Discussion options

You must be logged in to vote

@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://w…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@bugoverfl0w
Comment options

@ehsandeep
Comment options

@bugoverfl0w
Comment options

@ehsandeep
Comment options

@bugoverfl0w
Comment options

Answer selected by MetzinAround
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
2 participants
Converted from issue

This discussion was converted from issue #1214 on June 07, 2023 10:29.