passt

command module
v0.0.0-...-f9817dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 1 Imported by: 0

README

Passt

CLI tool to check if all links on a website are alive.

License

Content

Installation

With go

go install codeberg.org/serghei/passt

Usage

Passt requires a URL as the argument. If the URL doesn't contain a leading http(s), Passt will add http to the initial request.

The following command sends a request to http://localhost:1999. If the received HTML contains anchors with relative paths or the same host, Passt will also send a request to them.

passt localhost:1999

Arguments

You can specify what protocol to use for all the requests.

http

Use http for all requests. http is faster, but most modern browsers upgrade http requests to https. Using http for all requests doesn't mirror how a user navigates the web.

Send a request to http://localhost:1999, replacing all https links inside the received HTML with http.

passt http localhost:1999
https

Use https for all requests. Some websites don't support https. If that's the case, the request will fail.

Send a request to https://localhost:1999, replacing all http links inside the received HTML with https. https requests to servers without a certificate will fail.

passt https localhost:1999

Flags

All the flags are usable together.

passt localhost:1999 -s -f
# or
passt localhost:1999 -fes
# ...
follow

Send a request to all found links. Without the external flag, it only requests relative paths and links with the same host.

passt localhost:1999 -follow
# or
passt localhost:1999 -f
summary

Print a table with all the status codes and how often they were received.

passt localhost:1999 -summary
# or
passt localhost:1999 -s
external

Include external links.

passt localhost:1999 -external
# or
passt localhost:1999 -e

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL