mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #852] request.scheme or request.schema? #847
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#847
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 @chaoyangnz on GitHub (Apr 8, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/852
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
latest
macOS Version? (Ex. mac 10.14)
10.15
Steps to reproduce
I am using scripting tool to add custom script, but i found the documentation saying
request.schema. Normally we useschemeto refer tohttporhttps. is that a typo or intentional?and another question in scripting, how can I reserve original
Hostheader?Expected behavior
Screenshots (optional)
@NghiaTranUIT commented on GitHub (Apr 8, 2021):
sorry, looks like it's a bug. I'm going to fix it now 👍
It should be the
schemeFor the Preserve host, you can use
request.preserveHostHeaderhttps://github.com/ProxymanApp/Proxyman/issues/769#issuecomment-770147548
Look like it doesn't mention in the Doc. I will update it
@chaoyangnz commented on GitHub (Apr 8, 2021):
thanks @NghiaTranUIT nice to document it. another question: how can I label
Editedcolumn in scripting just like built-inMap Remotedoes?@NghiaTranUIT commented on GitHub (Apr 8, 2021):
By Default, it should be marked "Edited" as soon as the flow is modified by the script. If it's not, maybe it's a bug 😄
Let me double check it 👍
@chaoyangnz commented on GitHub (Apr 8, 2021):
@NghiaTranUIT it is not.
my script is like the below:
I only want to transparently forward my request to my localhost.
So in the flow list, the request will be put into
localhostdomain folder rather than the originaldevelop.example.comdomain folder withEditcolumn labeled.I want to achieve the same behaviour like
Map Remote@NghiaTranUIT commented on GitHub (Apr 8, 2021):
Thanks. I will investigate why there is no Edited in the Scripting 👍
@NghiaTranUIT commented on GitHub (Apr 8, 2021):
@chaoyangnz please check out this beta build: https://github.com/ProxymanApp/Proxyman/issues/853#issuecomment-815522521
It fixes some bugs you mentioned 👍
It's the correct behavior from the Scripting. I'm not sure how to fix it
@chaoyangnz commented on GitHub (Apr 8, 2021):
@NghiaTranUIT thanks for the new version.
just wondering,
Map Remoteachieved that?http://example.com/aa/(.+)tohttp://aa.com/$1? I saw Charles can do this@NghiaTranUIT commented on GitHub (Apr 8, 2021):
If you would like to achieve the same thing with Map Remote (like your screenshot in the previous comment https://github.com/ProxymanApp/Proxyman/issues/852#issuecomment-815406950), it's not possible for now 😿
If your script is working, please use it since it's easier to express your logic.
You can do it by using Regex in the Scripting.
Here is the example code
It will return the matching groups
After that, you get the last group and construct the URL in the script 👍
@chaoyangnz commented on GitHub (Apr 8, 2021):
thanks. close this.
@NghiaTranUIT commented on GitHub (Apr 8, 2021):
Thank you. I will create a ticket to improve the Map Remote, which is able to use Regex Group like Charles 👍
@patrickschulze commented on GitHub (Jun 19, 2024):
@NghiaTranUIT I bought Proxyman yesterday and I really like it.
However, is this functionality already implemented when using the UI and not scripting? How would I access the matching groups? I tried named groups as well as numbered groups but it didn't seem to work.
Rule
https://test.com/b2c/app/pushnotification/1/(.+?)/partner/register-tokenNeither
/api/gsa/pushnotification/$1/partner/register-tokenor/api/gsa/pushnotification/${1}/partner/register-tokenwork.@NghiaTranUIT commented on GitHub (Jun 19, 2024):
@patrickschulze sorry, the Matching Group (
() and ${1}) hasn't been supported for the UI yet.I highly recommend using Scripting Tool, because it's easier to express your needs by writing a JS code.
@patrickschulze commented on GitHub (Jun 19, 2024):
@NghiaTranUIT Thanks for the very quick response. That's actually what I'm already looking into since scripting will be the better option in the future anyway when it comes to efficiency.
Would still be a nice to have in the UI I guess since Proxyman's UI is really nice.
@patrickschulze commented on GitHub (Jun 19, 2024):
Just if anyone is curious how to solve it with named groups, here's what I came up with: