Skip to content

PHP CLI script showing the most important information about the requested url

License

Notifications You must be signed in to change notification settings

barabasz/urlinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlinfo

urlinfo is a simple PHP CLI wrapper around cURL 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

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.

About

PHP CLI script showing the most important information about the requested url

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages