0

Suppose I have got an application which sends request (GET,POST) to google.com:1010/api/req
Is it possible to simulate the api on localhost and redirect requests sent to google.com:1010/api/req to the mimicked api on localhost, something like localhost:1010/api/req?
Are the any tools to facilitate this process?

4
  • Not sure if that's RE even. What OS are you on? There's usually a hosts file where you can specify what name resolves to what IP. Just map google.com to 127.0.0.1 and you're good to go. Commented Oct 5, 2020 at 6:12
  • @PawełŁukasik It is Windows 10 Commented Oct 5, 2020 at 10:11
  • 1
    then you can use c:\Windows\system32\drivers\etc\hosts to do the job. Commented Oct 5, 2020 at 10:15
  • @PawełŁukasik Isn't there any tool available with some additional features for APi Mocking? Commented Oct 5, 2020 at 13:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.