https://github.com/bn3t/tail-url
Tail text from an URL
https://github.com/bn3t/tail-url
command-line command-line-tool http http-get rust tail url
Last synced: 9 months ago
JSON representation
Tail text from an URL
- Host: GitHub
- URL: https://github.com/bn3t/tail-url
- Owner: bn3t
- License: apache-2.0
- Archived: true
- Created: 2018-03-04T12:54:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T22:23:02.000Z (almost 8 years ago)
- Last Synced: 2025-03-05T03:44:40.713Z (11 months ago)
- Topics: command-line, command-line-tool, http, http-get, rust, tail, url
- Language: Rust
- Size: 79.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tail-url - Tail text from an URL [](https://travis-ci.org/bn3t/tail-url)
This is a utility to tail text from an HTTP endpoint. It works similarly to doing tail -f with a local file. Typically, the source should be a growing text file (like a log file) served by a server supporting the Range header in http.
## Usage
```
$ tail-url -h
Usage:
tail-url [OPTIONS] URL
Tail text coming from an URL
positional arguments:
url URL to tail
optional arguments:
-h,--help show this help message and exit
-t Starting tail offset in bytes
```
### Example
The following example will tail from the URL http://localhost:8080/logfile.
```
tail-url http://localhost:8080/logfile
```
## Requirements
For the utility to work, the HTTP server needs to support the Range header with a range of bytes in the GET request. The tool checks it by calling the HEAD method on the resource and checking for the AcceptRanges header.