Skip to content

Commit

Permalink
Add a log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo authored May 1, 2017
1 parent b3ba667 commit 4347100
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ saml_tools.sh

Bash script ``cget.sh`` retrieves and caches HTTP resources on disk. A previously cached resource is retrieved via HTTP Conditional GET [RFC 7232]. If the web server responds with HTTP 200 OK, the resource is cached and written to stdout. If the web server responds with 304 Not Modified, the cached resource is output instead.

To illustrate, define a couple of HTTP resources and a cache:
To illustrate, define a couple of HTTP resources, a cache, and a log file:

```Shell
$ url1=http://md.incommon.org/InCommon/InCommon-metadata-preview.xml
$ url2=http://md.incommon.org/InCommon/InCommon-metadata-fallback.xml
$ export CACHE_DIR=/tmp/http_cache
$ export LOG_FILE=$CACHE_DIR/cget_log.txt
$ touch $LOG_FILE
```

GET the first resource:
Expand Down

0 comments on commit 4347100

Please sign in to comment.