Last active
September 5, 2020 16:17
-
-
Save gsumit1/2af90251f62e6f3d47f2245dc1e877e1 to your computer and use it in GitHub Desktop.
Simple Proxy
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
curl -i -X POST -H 'Content-Type: application/json' http://127.0.0.1:2525/imposters --data '{ | |
"port":9907, | |
"protocol":"http", | |
"name":"proxyOnce", | |
"recordRequests": true, | |
"stubs":[ | |
{ | |
"responses":[ | |
{ | |
"proxy":{ | |
"to":"http://httpbin.org", | |
"mode":"proxyOnce", | |
"predicateGenerators":[ | |
{ | |
"matches":{ | |
"headers":true, | |
"method":true, | |
"path":true | |
}, | |
"caseSensitive":true | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A sample configuration file used for the proxy creation in MounteBank.