Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barabasz/urlinfo
PHP CLI script showing the most important information about the requested url
https://github.com/barabasz/urlinfo
cli curl terminal url
Last synced: about 1 month ago
JSON representation
PHP CLI script showing the most important information about the requested url
- Host: GitHub
- URL: https://github.com/barabasz/urlinfo
- Owner: barabasz
- License: mit
- Created: 2023-07-31T15:08:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-13T15:58:25.000Z (over 1 year ago)
- Last Synced: 2024-11-20T06:11:19.745Z (about 2 months ago)
- Topics: cli, curl, terminal, url
- Language: PHP
- Homepage: https://github.com/barabasz/urlinfo
- Size: 607 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# urlinfo
`urlinfo` is a simple PHP CLI wrapper around [cURL](https://www.php.net/manual/en/book.curl.php) that allows to display the most important information about the requested url in easy-to-read form.
## Usage
`urlinfo [options] URL`
Arguments:
`URL` - url to request
Options:
-b show body (only for unencoded text/plain content)
-c print verbose cURL info (without SSL info)
-f ignore SSL errors
-H print this info and exit
-h print verbose response headers (without cookies and CSP)
-i print verbose ipinfo
-m mute standard output
-p force plain text content response
-t show script execution time
-v print version and exit## Output Example
![Example of utlinfo output](https://raw.githubusercontent.com/barabasz/urlinfo/main/example.png)
## Transfer times
### TTFB (Time to First Byte)
Time to first byte is calculated as a time between final request (GET send by the client after TCP handshake and SSL handshake) and first byte recieved (difference between `time_pretransfer` and `time_starttransfer`).
### Transfer time
Time of transfer itself calculated as a time betwenen total time (`time_total`) and a time the first byte was just about to be transferred (`time_starttransfer`).
### Total time
Total time for this request, including name resolving, handshaking and transfer.