'Is there a way to set custom responses from an external server when a specific request receive?

I have a program that is only displaying bug behavior when a certain response is received from an external server.

The only thing is, the external server is in a static state so no code changes can be applied to it.

What I am wondering, is if there is a way that I can set up some third party software to listen on port 80 for all requests to http://www.some-site.com with request body {“foo”:”bar”}

Does anyone know if there is any 3rd party software available somewhere that can accomplish this? I would need to run my program as it’s own instance and have whatever software working independently. I had considered using WireMock standalone, but I’m not sure it is made for what I need



Solution 1:[1]

I'm pretty sure that you can you could just make that server send a request to that server or the other way around. If this isn't what you want to do then make sure to say so.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 developer