alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 28 forks source link

Proxy has been supported on iOS #19

Closed MazZilaaaa closed 5 years ago

MazZilaaaa commented 5 years ago

This PR fixes only iOS

alexrainman commented 5 years ago

Interesting. Will check how to implement this in Android and UWP before merging.

MazZilaaaa commented 5 years ago

Ok, before comment above, I didn't want do it and I felt bad myself. But after this comment, I will do.

alexrainman commented 5 years ago

Cannot fully merge your PR because it is only iOS but, I am using your implementation in iOS.

alexrainman commented 5 years ago

I was able to implement the proxy on all platforms. Now, how I can verify it is working? How you did it in iOS?

alexrainman commented 5 years ago

I tried setting Postman as my proxy but I cannot see the http calls being added to the History.

MazZilaaaa commented 5 years ago

In my project i use a local proxy stunnel library. It is started on my iOS device or simulator. But working with stunnel is some difficult. For simplicity you can use jmeter. You should install it on your local machine and configure it as a proxy server. After, in your application, you should setup modernhttpclient proxy on your local proxy and launch application. When your application start send request, in jmetter you should see the requests and responses.

MazZilaaaa commented 5 years ago

I will try to use new version of library on iOS and Android.

alexrainman commented 5 years ago

Latest version supports proxies in all platforms.

MazZilaaaa commented 5 years ago

I know, but I don't have a windows machine.