-
Notifications
You must be signed in to change notification settings - Fork 82
Network throttling in iOS app programatically for automation. #59
Comments
Yes, as long as you put
Your iOS should communicate with the |
Thanks for reply. Since I am new to node js, could you please guide me how to hit api to localhost using node js? Thanks again |
See some examples, such as: https://github.com/h2non/toxy/blob/master/examples/bandwidth-limit.js Run it locally from the console via: You need to replace the $ npm install -g localtunnel Then: $ lt --port 3000 --subdomain my-toxy-proxy-server That would give you an URL like: That's all. Enjoy it. |
Thank you so much for ur reply. |
As far as I know, you don't need to explicitly use the "proxy" mode in the iPhone. You just need to communicate to the target IP/hostname of |
Ok, but i do not want to proxy specific url, In my case, my framework itself hit all the network call and i am unable to access the urls. I want to add proxy so that any network call able to track which go through my iphone. Please help and thank you again |
Today, I tried all the steps what you mentioned,
but found that no call goes through a proxy. Currently, I am trying this in a browser. Please let me know if anything missing from my end. Please help me. |
This looks like an XY problem. I'm not actually sure that you know what you want or you actually understand how the network works. Please, make sure you understand these things. Otherwise I can't help. |
Thanks for reply and sorry to bother you.
Just want to know how I can access these API from client end. |
You can take a look at the instructions on the Readme > Admin API section. Basically, you need to start 2 HTTP servers running on different ports, one for the proxy itself, and another for the HTTP Admin API. You can see an example as well on the repository. Note that this is apposite to your initial intention about having programmatic control of the proxy. |
Thanks for the reply. I think HTTP API is the only way to achieve throttled at runtime from the iOS app otherwise no other way to access proxy rules and poison. I run admin server on port 9000 and proxy server in 3000 port. Now the only issue, when I hit HTTP API to limit bandwidth, it is not setting the actual bandwidth what I am passing to in json request mentioned below. Thanks again for helping me throughout. |
Hi Team,
Is it possible that I can throttle network on my iOS app or specific URL?
Please help me to understand this, what are the things required for this if possible.
Thanks
The text was updated successfully, but these errors were encountered: