trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject trafficserver git commit: doc: use universally working curl -X PURGE call
Date Fri, 06 Nov 2015 15:20:05 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master de42e06ce -> cbee60c07


doc: use universally working curl -X PURGE call

adding --resolve example.com:80:127.0.0.1 to the curl call, should also
clue people in as to how to access their https:// sites ;)


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/cbee60c0
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/cbee60c0
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/cbee60c0

Branch: refs/heads/master
Commit: cbee60c078618c6a5a28a91f0d8dc9b2e9d76b22
Parents: de42e06
Author: Igor Galić <i.galic@brainsware.org>
Authored: Fri Nov 6 16:18:17 2015 +0100
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Fri Nov 6 16:18:17 2015 +0100

----------------------------------------------------------------------
 doc/admin-guide/storage/index.en.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cbee60c0/doc/admin-guide/storage/index.en.rst
----------------------------------------------------------------------
diff --git a/doc/admin-guide/storage/index.en.rst b/doc/admin-guide/storage/index.en.rst
index 5ecdac2..506a5b4 100644
--- a/doc/admin-guide/storage/index.en.rst
+++ b/doc/admin-guide/storage/index.en.rst
@@ -332,10 +332,10 @@ In the following example, Traffic Server is running on the domain
 from cache. Because by default we do not permit ``PURGE`` requests from
 any other IP, we connect to the daemon via localhost: ::
 
-      $ curl -X PURGE -H 'Host: example.com' -v "http://localhost/remove_me.jpg"
-      * About to connect() to localhost port 80 (#0)
+      $ curl -vX PURGE --resolve example.com:80:127.0.0.1 http://example.com/remove_me.jpg
+      * About to connect() to example.com port 80 (#0)
       * Trying 127.0.0.1... connected
-      * Connected to localhost (127.0.0.1) port 80 (#0)
+      * Connected to example.com (127.0.0.1) port 80 (#0)
 
       > PURGE /remove_me.jpg HTTP/1.1
       > User-Agent: curl/7.19.7


Mime
View raw message