Skip to content

danilevy1212/url-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages