Closed vaseala closed 1 year ago
As is, basically no, but you might be able to bodge together some changes to make it work...
There's at least a few main issues:
HTK_SERVER_TOKEN
env var to some value, and then pass that as ?authToken=...
in your browser when loading the UI, but this is really a security-in-depth mechanism - it's a backup, it's not properly designed to provide rock-solid security for a high risk service on the public internet (there's no rate limiting, for example).127.0.0.1
everywhere with your server's IP (note that there's two different UI -> server connections: one on 45457 for querying machine state & launching interceptors, and one on 45456 to Mockttp to manage the proxy & configure traffic rules).Those are just the cases I'm aware of though, I'm sure there are other problems! I would actually like to solve all that and add built-in support for this eventually (tracked in https://github.com/httptoolkit/httptoolkit/issues/288) but it's not available yet, so if you do get this working or find other issues, please do share them on that issue :smile:.
Thank you @pimterry for such a detailed answer, I can feel that you love the httptoolkit project very much.
I am still a novice in this field, and my ability can only reach the use level at present.
I sorted out my needs again, and my needs should be mainly on the android side:
First of all, I need a vpn tool (let's call it vpn-app
) on the android side, which can monitor http/https requests from other apps on the phone. vpn-app
can automatically POST these request data to a server, similar to sending an http post request to a backend server. As long as I can set the server and RESTful interface in this vpn-app
, of course, it would be better if I can set whether to submit these data automatically or manually.
I feel that I should create a new issue under the httptoolkit-android
repository, but I feel that this requirement is inconsistent with the original intention of httptoolkit-android
.So don't take this as a issue, but as a simple communication between friends. I hope you can recommend some apps that meet the needs I described above or give me some related suggestions.
I want to run the
httptoolkit-server
andhttptoolkit-ui
on the server, and then installhttptoolkit-android
on the phone, the phone and the server are not in the same wifi. I just want to view some requests on the phone from the server's UI, and don't want to modify anything.Is this possible? Or the server running thehttptoolkit-server
and the mobile phone running thehttptoolkit-android
must be on the same wifi?