mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #691] Viewing HTTPS requests on Proxyman made through Node #686
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#686
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 @water-a on GitHub (Nov 13, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/691
Proxyman version? (Ex. Proxyman 1.4.3)
Proxyman 2.12.0
macOS Version? (Ex. mac 10.14)
Mac Big Sur 11.0.1
Steps to reproduce
Expected behavior
The request is made, however the site redirects to the https://walmart.com/ and that HTTPS request is never shown on Proxyman. I'm wondering how I would get the HTTPS request to show as well on Proxyman.
The request is returned fine in the node application itself.
Screenshots (optional)
@NghiaTranUIT commented on GitHub (Nov 14, 2020):
Hi @water-a, It's correct behavior since Proxyman doesn't follow the redirect link at the moment.
If you use curl to make a request to
http://walmart.com, you can see the same result:from Proxyman
@water-a commented on GitHub (Nov 14, 2020):
Will there ever be an update to follow redirect links?
@NghiaTranUIT commented on GitHub (Nov 14, 2020):
I don't think that Proxyman should follow. This responsibility is from the end-users's browser or client app. Proxyman just proxy the data forward and backward from your app -> server
If you try on any browser (e.g Google Chrome), the browser will make a redirect request to
https://walmart.comfrom the Location Header Key. At this time, you can see the redirect request from Proxyman.From what I see, axios doesn't automatically follow the redirect page (https://stackoverflow.com/questions/59473021/axios-follow-redirect)
@water-a commented on GitHub (Nov 14, 2020):
I see.
From what I can see, axios (on backend code at least) does follow the request when it redirects. However it might be an issue with axios might not be using the proxy when fetching the redirect.
Thanks for the quick reply!
@NghiaTranUIT commented on GitHub (Nov 14, 2020):
Thank you for opening the ticket. I'm happy to have this discussion 🙌
@water-a commented on GitHub (Nov 14, 2020):
Just for anyone else having this issue:
So it appears that when axios follows the redirect (for Node.js backend use), it doesn't seem to use the proxy configuration given.
I've fixed that issue by using the global-agent package. Here's some sample code:
Result:

@NghiaTranUIT commented on GitHub (Nov 14, 2020):
Thanks for the trick 🙌