Skip to content

Spoofing Plugin #358

@stefanusayudha

Description

@stefanusayudha

Is your feature request related to a problem? Please describe.
It's been a very hard time to me to setup Mockoon TLS to use the proxy feature.
I found that the proxy feature in Mockoon is inconvenient. Also it's not quite possible to edit the /etc/hosts in android emulator production release. I tried, but not succeeded.

  1. Need to make mock (easy in mockoon)
  2. Need to enable TLS (because to use proxy feature i need tls to enable https protocol. if i use http, fallback request to actual server (which is using https) will be failed.
  3. Need to ensure android device successfully do the TLS handshake.
  4. Im not sure but i think the actual server also need to agree with self signed SSL from the local machine. So request fallback can seamlessly done.
  5. Need to create local DNS because some tools like okhttp cannot call https://10.0.2.2 with custom port like 3000, or maybe theres a setup only god knows.
  6. and many more i can tell.

Describe the solution you'd like
I need only redirect request from "some.domain.com" into 10.0.2.2:3001 when needed (Not Always, like manualy activated).
Also need to ensure that the redirection might use https.
this is not a problem when we change the url setup in okhttp setup, but solution which is not requires modifying the code is better.

My idea is simply rederect the call when the flag is set to true, enabling spoofing mode.
Intercepting the okhttp call will be easier, no tls setup, no domain name server, just rebuild the request with new adress. and magick happend.

Key note:

  1. Spoof request on Demand -> Reroute the request to given domain
  2. HTTP option (in case needed but i don't think so, reabuilding the request from https to http shall required nothing in okhttp but to replace the url target).

I'm very thank you, I love you gus, i wish i can help with this belive me i've tried.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions