This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ##################################################################### | |
| # Retrieve a web resource via HTTP Conditional GET [RFC 7232] and | |
| # output the resource on stdout. Cache the web resource and consult | |
| # the cache on subsequent requests for the same resource. By default, | |
| # return the cached resource (if it exists) if and only if the web | |
| # server responds with 304 Not Modified. | |
| # | |
| # Usage: cget.sh [-vfcH] URL |