mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #506] Terminal CLI requests not shown, even if HTTP_PROXY is set #503
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#503
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 @alexpreynolds on GitHub (May 18, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/506
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
1.23.0
macOS Version? (Ex. mac 10.14)
10.15.4
Steps to reproduce
HTTP_PROXYenvironment variableenvto confirm environment is set correctlytabix)As an example command:
Other tools also do not seem to work (e.g.
curl):I do know that one can manually set the proxy in
curlwith the-xoption. However, I'm trying to demonstrate thatHTTP_PROXYappears not to work with Proxyman for generic CLI operations.Expected behavior
When
HTTP_PROXYis set, I would expect to see the details of this and other HTTP requests in Proxyman made with CLI tools.Screenshots (optional)
@NghiaTranUIT commented on GitHub (May 19, 2020):
Hey @alexpreynolds,
HTTP_PROXY(uppercase) won't work with curl (http_proxy=http://127.0.0.1:9090 curl http://explore.altius.org/tabix/vA/hg19.15.all.KL.gz.tbi -o /tmp/foo.tbi)Let try to lowercase version, it will work 👍
Alternatively, you can force by using the flag
--proxy http://localhost:9090For instance,
The request will appear on Proxyman
@alexpreynolds commented on GitHub (May 20, 2020):
Thanks, I was able to make some progress.
However, I still get errors and am unable to investigate the response data.
Here's an example of an unproxied request:
Here's an example of the equivalent request, proxied through Proxyman:
The proxied request takes a long time but does goes through.
However, I get errors within Proxyman:
The error at the bottom is
Protocol wrong type for socket (code=41).There are two requests from one call to
tabix, in this case, becausetabixfirst requests data fromhttp://explore.altius.org/tabix/vA/hg19.15.all.KL.gz.tbi, in order to find out what byte range to request fromhttp://explore.altius.org/tabix/vA/hg19.15.all.KL.gz.My goal with Proxyman is to investigate these two requests and their respective responses.
@alexpreynolds commented on GitHub (May 20, 2020):
Interestingly, on a subsequent run, I get a
Broken pipe (code=32)error:@NghiaTranUIT commented on GitHub (May 21, 2020):
Hey @alexpreynolds, I found the bug. Technically, the Socket returns an error even though the response is received and constructed properly, so Proxyman presents the error instead of the real Response.
Let check this BETA build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.23.0_Fix_Proxy_Big_Files.dmg
It takes a long time because the large files are transferring to Proxyman's proxy (>100Mb)
You can export the Body for further investigations by Right-Click -> Export -> Response Body
@alexpreynolds commented on GitHub (May 26, 2020):
Thanks for your help — I now get back a fair bit of data and no errors, which I'm parsing through. Assuming I run this on different datasets and run into larger datasets being transferred, is there a static upper limit on data set in this beta, or is this a variable that can be set on running Proxyman (via environment variable or some preference within Proxyman)?
@NghiaTranUIT commented on GitHub (May 28, 2020):
Unfortunately, there is no such upper limit feature at the moment. I will consider to add it later 👍