Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a floret to map requests that accepts Charles proxy configuration #216

Open
brototyp opened this issue Mar 8, 2021 · 0 comments
Open
Labels

Comments

@brototyp
Copy link
Member

brototyp commented Mar 8, 2021

I often use Charles proxy to map requests from production to staging or another environment. I hereby propose a floret that can do the same without the use of Charles and accepts the same xml configuration files that Charles accept.

Example configuration

<?xml version='1.0' encoding='UTF-8' ?>
<?charles serialisation-version='2.0' ?>
<map>
  <toolEnabled>true</toolEnabled>
  <mappings>
    <mapMapping>
      <sourceLocation>
        <protocol>https</protocol>
        <host>cauli.works</host>
        <port>80</port>
        <path>blog</path>
      </sourceLocation>
      <destLocation>
        <host>127.0.0.1</host>
        <port>4000</port>
      </destLocation>
      <preserveHostHeader>false</preserveHostHeader>
      <enabled>true</enabled>
    </mapMapping>
  </mappings>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant