Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to support proxy #504

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leteno
Copy link

@Leteno Leteno commented Aug 5, 2023

This code is nothing more than a draft.

What it could do

It would redirect your request to a proxy, like whistle I host in port 8899.

I could see my phone's network request in my whistle console, and I could do some redirecting like redirecting foobar.com to localhost, to verify my local changes. (I am also the developer of foobar.com)

It just works fine in my computer.

What it cannot do

I notice there are some capture errors in CONNECT.
image

I have no idea what it is. So I am not sure my changes could be accepted.

This is just a draft, if it is accepted, I will add some Android UX to config the proxy address and port.

@Leteno
Copy link
Author

Leteno commented Aug 5, 2023

btw, it works fine when I browse something in my phone's browser.
image

However, for the app like zhihu, it seems the network is down. I guess it is related to captureError I list above.

However, currently I have no idea how to fix it.

Just share the idea to achieve simple proxy redirecting.

If you just want to observe the network request of your phone's browser, this should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant