Running a Rails application locally, I am able to configure Charles Proxy to show all the request/response details for the app accessible at lvh.me:3000.

However I haven't been able to capture the rails app internal http calls to external urls. For e.g. using the rest-client/httparty when I make an external call to say http://www.google.com from within my Rails app, Charles proxy does not show the server initiated http requests to google.com.

Can some one suggest what configuration I am missing? In Recording Settings > Include > I have added http://www.google.com.

有帮助吗?

解决方案

You need to configure the httpclient to use you proxy. If you are using rest-client you only need to set the proxy address to Charles proxy. E.g. RestClient.proxy = "http://127.0.0.1:8881"

其他提示

Or if it's httpclient:

http_client = HTTPClient.new(proxy: "127.0.0.1:8888")

...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top