Map Remote
Last updated
Last updated
Map Remote (⌘⌥R) would help the developer to change the HTTP Request's location to a new destination server, per the configured rules, so the HTTP Response is transparently served from your client.
Map Remote also supports mapping from HTTP to HTTPS and vice-versa
Use Production Endpoints on your Development website on certain endpoints without changing the source code
Use Development Endpoints on your Production website
Change certain request's URLs to different destinations
Able to replace requests components, such as Protocol, Host, Port, Path, or Query on the fly
From Proxyman 2.27.0+, Map Remote can work with GraphQL Request by a specific QueryName. Please check out the following GraphQL Document.
For instance, it's straightforward to do the following by Scripting:
Map v1 to v2 endpoints
Map Production to Localhost
Map Localhost to Production
...
For matched requests, Proxyman attempts to:
Replace Protocol, Host, Port, Path, and Query if it available
If the component is empty, it won't change the matched request's component
To determine what Map Remote matches your URL, you can open The Request -> Summary Tab:
Select your request
Summary Tab -> Debugging Tools
Check the Map URL
By default, Proxyman attempts to override the Host Header to match with the new Host in Remote Map. It's crucial to successfully make a request.
If you would like to preserve the original Host Header, please check ON in the "Preserve Host Header" checkbox when creating a new entry. Proxyman will preserve the Host value.
Right Click on selected Request -> Tools -> Map Remote: Proxyman will fill in the necessary data from the selected request
Result:
http://localhost:3000
https://proxyman.io
http://localhost:3000/pricing
https://proxyman.io/pricing
http://localhost:3000/v1/user?id=123&name=proxyman
https://proxyman.io/v1/user?id=123&name=proxyman
POST http://localhost:3000/login
POST https://proxyman.io/login
https://proxyman.io
http://localhost:3000
https://proxyman.io/v1/user?id=123&name=proxyman
http://localhost:3000/v1/user?id=123&name=proxyman
POST https://proxyman.io/login
POST http://localhost:3000/login
Rule: https://proxyman.io/v1/user (for instance)
Select Any and Wildcard
Un-Check Include all subpaths of this URL: Un-check means it doesn't map other subpaths
Map To:
Protocol: https
Host: New Host (e.g staging.proxyman.io)
Port: 443 (your local port)
Leave Path and Query Empty
Result:
https://proxyman.io
https://proxyman.io (does not map the rule)
https://proxyman.io/v2/setting
https://proxyman.io/v2/setting (does not map the rule)
https://proxyman.io/v1/user?id=123&name=proxyman
https://staging.proxyman.io/v1/user?id=123&name=proxyman
ws://localhost:4000
wss://ws.postman-echo.com
ws://localhost:4000/websocket
wss://ws.postman-echo.com/websocket
wss://ws.postman-echo.com
ws://localhost:3000
wss://ws.postman-echo.com/websocket
ws://localhost:3000/websocket
Check out common when mapping from HTTP <-> HTTPS.
To boost your productivity, you can use the that allows you to achieve the same result as Map Remote by writing simple Javascript Code
For instance,
If you get difficult to set up a complicated Map Remote Rule, you might easily do it by using the .
Please check out to learn how to use Scripting to achieve the same result as Map Remote.
Proxyman supports and Wildcard from the 2.3.0 version.
We can define matching rules by using .