Using Mock Server to proxy http requests (So you can see the actual requests)

Submitted by code_admin on Thu, 08/08/2019 - 13:51

This page describes how to setup a mock server on a machine which will proxy HTTP requests and allow them to be inspected.

http://mock-server.com
(http://www.mock-server.com/mock_server/running_mock_server.html#running…)

Setup

Download http://search.maven.org/remotecontent?filepath=org/mock-server/mockserv…
and place in a directory.

Run the command

  1. java -jar ~/Downloads/mockserver-netty-5.6.1-jar-with-dependencies.jar -serverPort 1080,1081 -logLevel INFO -proxyRemotePort <port> -proxyRemoteHost <hostname>

Clients must call url:

Google Juice

Mock Server
mockserver

RJM Article Type
Step by Step