danilevy1212 / url-tester

Another golang toy project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

url-tester

A versatile Go application for checking the availability of URLs using HTTP HEAD requests.

Description

url-tester is a Go-based tool that verifies the accessibility of URLs either passed as an argument or read from a file. It performs HTTP HEAD requests and reports the status for each URL. It supports parallel processing for efficiency.

Usage

  1. Compile:

    go build
  2. Basic usage help

    ./url-tester --help   
  3. Run with a Single URL:

    ./url-tester <url>
  4. Run with a File

    ./url-tester --file <file_path>

    Replace <file_path> with the path to the file containing the list of URLs. Each URL should be on a new line.

Output

The program outputs the status of each URL. For URLs that return a status other than 200 OK, it prints the URL and its HTTP status code.

Example: Status '404': 'http://example.com/notfound'

License

About

Another golang toy project

License:MIT License


Languages

Language:Go 100.0%