Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output response status #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Yakabuff
Copy link
Contributor

@Yakabuff Yakabuff commented Apr 26, 2023

Fixes: #17

Prints out response code (404, 500 etc), URL of capture (useful to see if there are redirects) and misc header info after capture

{
  status: 404,
  url: 'http://fakesite.com/doesnotexist',
  headers: {
    connection: 'keep-alive',
    'content-encoding': 'gzip',
    'content-type': 'text/html',
    date: 'Wed, 26 Apr 2023 03:29:34 GMT',
    server: 'nginx/1.18.0 (Ubuntu)',
    'transfer-encoding': 'chunked'
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

single-file-cli doesn't exit with error code when retriving page fails
1 participant