mountebank

How to record request and reponse using a proxy in Mountebank?

别来无恙 提交于 2019-12-22 09:55:29
问题 I am creating an imposter process using Mountebank and want to record the request and response. To create a http imposter I used the following CURL command as described in their documentation. curl -i -X POST -H 'Content-Type: application/json' http://127.0.0.1:2525/imposters --data '{ "port": 6568, "protocol": "http", "name": "proxyAlways", "stubs": [ { "responses": [ { "proxy": { "to": "http://localhost:8000", "mode": "proxyAlways", "predicateGenerators": [ { "matches": { "method": true,

How to record request and reponse using a proxy in Mountebank?

浪子不回头ぞ 提交于 2019-12-06 01:17:30
I am creating an imposter process using Mountebank and want to record the request and response. To create a http imposter I used the following CURL command as described in their documentation. curl -i -X POST -H 'Content-Type: application/json' http://127.0.0.1:2525/imposters --data '{ "port": 6568, "protocol": "http", "name": "proxyAlways", "stubs": [ { "responses": [ { "proxy": { "to": "http://localhost:8000", "mode": "proxyAlways", "predicateGenerators": [ { "matches": { "method": true, "path": true, "query": true } } ] } } ] } ] }' I have another server running at http://localhost:8000