mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
[#31] Document BasicAuth injection
Has been asked about previously. `http.Client.Do` does this for us.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user