Skip to content

Instantly share code, notes, and snippets.

@sunilmallya
Created March 9, 2015 05:47
Show Gist options
  • Save sunilmallya/27545f7f5e25b999bc8c to your computer and use it in GitHub Desktop.
Save sunilmallya/27545f7f5e25b999bc8c to your computer and use it in GitHub Desktop.
Charles
<?xml version='1.0' encoding='UTF-8' ?>
<?charles serialisation-version='2.0' ?>
<rewriteSet-array>
<rewriteSet>
<active>true</active>
<name>Rewrite</name>
<hosts>
<locationPatterns>
<locationMatch>
<location>
<protocol>http</protocol>
<host>myhost.com</host>
<path>/file.js</path>
</location>
<enabled>true</enabled>
</locationMatch>
</locationPatterns>
</hosts>
<rules>
<rewriteRule>
<active>true</active>
<ruleType>6</ruleType>
<matchValue></matchValue>
<matchHeaderRegex>false</matchHeaderRegex>
<matchValueRegex>false</matchValueRegex>
<matchRequest>false</matchRequest>
<matchResponse>false</matchResponse>
<newValue>http://localhost/myfile.js</newValue>
<newHeaderRegex>false</newHeaderRegex>
<newValueRegex>false</newValueRegex>
<matchWholeValue>true</matchWholeValue>
<caseSensitive>false</caseSensitive>
<replaceType>2</replaceType>
</rewriteRule>
</rules>
</rewriteSet>
</rewriteSet-array>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment