Reputation: 43310
I have some software which makes a request to a specific URL in internet and I want it to receive my custom response. Is there any software tool for that on Windows? Also it would be nice if I could map a regexp instead of specific URL
Upvotes: 1
Views: 517
Reputation: 57095
Fiddler (www.fiddler2.com) has an AutoResponder feature which does exactly that.
Upvotes: 0
Reputation: 43310
Found the solution myself:
Upvotes: 1
Reputation: 1350
You can:
Try to enject your dll into the process and replace functions like (HttpSendRequest, HttpQueryInfo,...) with your oun versions.
Try to use something like WinPCap (http://www.winpcap.org/).
Upvotes: 0
Reputation: 20674
You could consider writing a test and mocking out the http response with your custom response.
I could give an example using C# and rhino mocks but it's not clear which platform you are working with.
Upvotes: 0