Skip to content

Instantly share code, notes, and snippets.

@gsumit1
Last active September 5, 2020 16:17
Show Gist options
  • Save gsumit1/2af90251f62e6f3d47f2245dc1e877e1 to your computer and use it in GitHub Desktop.
Save gsumit1/2af90251f62e6f3d47f2245dc1e877e1 to your computer and use it in GitHub Desktop.
Simple Proxy
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
}
]
}
}
]
}
]
}'
@gsumit1
Copy link
Author

gsumit1 commented Aug 22, 2020

A sample configuration file used for the proxy creation in MounteBank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment