Question

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.

Était-ce utile?

La solution

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"

Autres conseils

Or if it's httpclient:

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

...

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top