dimanche 25 octobre 2015

Charles is not capturing http requests from a java client (client is based on spring rest template) in my MAC pro

Environment: MAC Proc

I have looked at HTTP Traffic monitoring issue when using MonoTouch, HttpClient and Charles Proxy and Why doesn't traffic using Xamarin's monotouch implementation of MobileServiceClient show up in Fidder/Charles.

Although my question is similar to them, my application is using RestTemplate http://ift.tt/1I0z8Ii. I am able to capture http and https traffic whenever request is through web browsers (safari and chrome to be specific), whereas when i make rest requests through my application (which is basically using RestTemplate) Charles proxy is not capturing them.

From the answers to the above questions, it should be something related setting proxy setting on the RestTempate. But am a .net developer and quite familiar with fiddler - but recently moved to Java and new to Charles - so it will be great if you can let me know specific details, or your thoughts on configuring rest template to use my mac os proxy...

Basically question is how to configure my rest template (client) such that the charles web proxy is able to capture the requests and responses through my application (client).

thank you.




Aucun commentaire:

Enregistrer un commentaire