mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 00:25:56 +03:00
[GH-ISSUE #239] Map Local to entire folder #237
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NghiaTranUIT on GitHub (Aug 5, 2019).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/239
Originally assigned to: @NghiaTranUIT on GitHub.
🐶 Brief
It's really convenience to support Map Local to an entire folder. Technical description at https://github.com/ProxymanApp/Proxyman/issues/224#issuecomment-517981601
👑 Criteria
@shirshak55 commented on GitHub (Aug 18, 2019):
And How about map to remote? Just like i may use
shirshak.dev/api/v1/hello.json
But would like to map out remote to
shirshak.dev/api/v2/hello.json
@NghiaTranUIT commented on GitHub (Feb 2, 2020):
Since the Map Local v2 is done. It's a perfect time to implement this feature 🙌
@NghiaTranUIT commented on GitHub (Feb 3, 2020):
Good news that this feature is implemented 🎉 @armiakrajowa @Mag-Stellon @AtishaGarinMchd @Dekhnar @DerJacques
You can download a BETA build at: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.15.0_Map_Local_From_Local_Directory.dmg
Sorry for being late since there are other high priority tasks too 😄
Basically, you can select a local directly and it will map like https://github.com/ProxymanApp/Proxyman/issues/224#issuecomment-517981601
Quick Look
New Map Local v2 UI
Guidline
Debug header key
@NghiaTranUIT commented on GitHub (Feb 3, 2020):
Feel free to bump any bugs you found. I'm going to officially release soon in this week. Thank you guys so much 🎉
@DerJacques commented on GitHub (Feb 3, 2020):
That’s so awesome. Thank you very much! Looking forward to giving it a spin, as soon as it is released.
The screenshots look exactly how I imagined them in my wild proxy application dreams.
@NghiaTranUIT commented on GitHub (Feb 3, 2020):
Glad to know you love it @DerJacques 💪
If the Map Local from Folder is successfully released in this week, Remote Map is the next feature 👍
@armiakrajowa commented on GitHub (Feb 4, 2020):
Hello @NghiaTranUIT
First, thank you for your reactivity on this feature.
Unfortunately this is not working in my case,
I want to map
https://my-domain.com/resources/???????????????Z/en/webapps/*to my local directory
/Users/***********/Workspace/***********/linux_a64/webapps.What's happening now is that if I try to reach
https://my-domain.com/resources/???????????????Z/en/webapps/app.jsit tries to read
/Users/***********/Workspace/***********/linux_a64/webapps/resources/20200204T071612Z/en/webapps/app.jsinstead of
/Users/***********/Workspace/***********/linux_a64/webapps/app.jsSo right now, your map tool is appending whatever is right after the domain name to the end of my directory path. I expected it to append only what is at the place of the wildcard at the end of my url.
Do you think it is possible to do it that way?
Thank you
@NghiaTranUIT commented on GitHub (Feb 4, 2020):
I understand what you means. In the initial implementation, I tried your suggestion, to map directly to specific folder. However, I dropped it because the complexity of implementation and there are some cases that causes confused. `
As a result, I choose the safe approach that Proxyman will replace the domain name with the local folder.
For now, I would suggest to create directory at
resources/20200204T071612Z/en/webapps/app.js. Meanwhile, I will look for better implementation to support it in next releases 👍@magstellon commented on GitHub (Feb 4, 2020):
Thanks for this enhancement 👍
@armiakrajowa commented on GitHub (Feb 4, 2020):
Maybe the best to do is to setup this with a regex like Fiddler
rules :
regex:.*/webapps/(.*)path:
/Users/*******/Workspace/*******/linux_a64/webapps/$1Where all chars within the first parenthesis will be put at the place of
$1So we can imagine this king of rules:
rules :
regex:.*/webapps/([^\/]*)/test/(.*)path:
/Users/*******/Workspace/*******/linux_a64/webapps/$1/hello_world/$2So
*******/webapps/whatever_you_want/test/also/whatever.jswill be mapped to/Users/*******/Workspace/*******/linux_a64/webapps/whatever_you_want/hello_world/also/whatever.jsThis is fully dynamic and will adapt to any situations. If you achieve to do this, you will rule over Fiddler for sure.
@NghiaTranUIT commented on GitHub (Feb 4, 2020):
Thank for the suggestion @armiakrajowa. I admit that the current state of Proxyman has few limitation in comparison with Charles Proxy or Fiddler's capacity.
However, for sure, I will keep working on it. Maybe it would take longer, but I won't leave it 🙌
The aim is that we would facilitate HTTP Debugging for all naive and expert devs.
@NghiaTranUIT commented on GitHub (Feb 4, 2020):
Accidentally close this ticket 😄
@armiakrajowa commented on GitHub (Feb 4, 2020):
Cool, thank you :D
@NghiaTranUIT commented on GitHub (Jul 22, 2020):
Hi @armiakrajowa,
I refined the Map Local UI and improve how we map a local directory (https://github.com/ProxymanApp/Proxyman/issues/558#issuecomment-662448769)
We can define a mapping rule by Regex and it will match at this path and its subdirectories. like Charles or Fiddler does 👍
@NghiaTranUIT commented on GitHub (Jul 23, 2020):
Update linked 👍
@NghiaTranUIT commented on GitHub (Jul 23, 2020):
For anyone concern that the Map Local with Directory is released and it works the same way like Fiddler and Charles https://github.com/ProxymanApp/Proxyman/releases/tag/2.3.0
Thanks all ❤️