mtulio / go-url

go-url is a cool URL tester that discovers all endpoints (IP address) and makes HTTP/S requests to each. It also can push metrics to the Pushgateway.
Apache License 2.0
5 stars 0 forks source link

feat: introducing to -url and argv[1] param to test url from cli #4

Closed mtulio closed 5 years ago

mtulio commented 5 years ago

$ ./bin/go-url -url https://www.google.com -dns

> Reading config from Param

> Found [1] URLs to test, starting...

URL=[ (www.google.com) https://[2607:f8b0:4008:811::2004]:443/] [ OK] : [200 OK] [962 ms] [DNS 106 ms] URL=[ (www.google.com) https://172.217.29.132:443/] [ OK] : [200 OK] [377 ms] [DNS 106 ms] Total time taken: 1446ms


- supporting `argv[1]` param as default target to test
```bash
$ ./bin/go-url https://www.google.com
#> Reading config from Param
#> Found [1] URLs to test, starting...
URL=[                            https://www.google.com] [  OK] : [200 OK] [942 ms]
Total time taken: 942ms

$ ./bin/go-url -dns https://www.google.com 
#> Reading config from Param
#> Found [1] URLs to test, starting...

URL=[    (www.google.com) https://[2607:f8b0:4008:811::2004]:443/] [  OK] : [200 OK] [1870 ms] [DNS 113 ms]
URL=[              (www.google.com)    https://172.217.30.68:443/] [  OK] : [200 OK] [236 ms] [DNS 113 ms]