Skip to content

spider8892/status-code-check

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

status-code-check

Status code check of URLs

Flag Name Example Input
-u url https://google.com
-f file "./path/to/filename.txt"

Usage

Check the status code of a URL

Terminal

go run main.go -u=https://google.com

Output

200 | https://google.com

Check the status codes of all URLs in a file

filename.txt (File Content)

https://jsonplaceholder.typicode.com/posts
https://jsonplaceholder.typicode.com/comments
https://jsonplaceholder.typicode.com/albums
https://jsonplaceholder.typicode.com/photos
https://jsonplaceholder.typicode.com/todos
https://jsonplaceholder.typicode.com/users

Terminal

go run main.go -f="path/to/filename.txt"

Output

200 | https://jsonplaceholder.typicode.com/posts
200 | https://jsonplaceholder.typicode.com/comments
200 | https://jsonplaceholder.typicode.com/albums
200 | https://jsonplaceholder.typicode.com/photos
200 | https://jsonplaceholder.typicode.com/todos
200 | https://jsonplaceholder.typicode.com/users

About

Status code check of URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%