From bc4fabd0da71bd98169b96f4e292ca2809569fa8 Mon Sep 17 00:00:00 2001 From: Dan Carley Date: Thu, 24 Oct 2013 13:02:14 +0100 Subject: [PATCH] [#31] Document BasicAuth injection Has been asked about previously. `http.Client.Do` does this for us. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 29eaafc..a00036e 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,16 @@ gor replay -f "http://staging.server" \ -header "Enable-Feature-X: true" ``` +### Basic Auth +If your development or staging environment is protected by Basic Authentication +then those credentials can be injected in during the replay: +``` +gor replay -f "http://user1:pass1@dev.server,http://user2:pass2@staging.server" +``` + +**Note:** This will overwrite any `Authorization` headers in the original +request. + ## Stats