Casablanca and Fiddler

Sep 11, 2015 at 7:46 AM

I tried using Casablanca to make some REST API calls from the native code. However, I was trying to use FIDDLER to intercept the http request/responses.

For Casablanca specifically, I could not find anything captured in FIDDLER. Is there any special configuration to enable OR any reason Fiddler is not able to intercept the HTTP messages from Casablanca.

When I tried sending same requests through C# (managed code), Fiddler was clearly showing the HTTP requests and responses.
Sep 19, 2015 at 12:09 AM
The Casablanca Windows (desktop) HTTP client is written on top of WinHTTP. You may have to follow the below instructions to use fiddler to intercept http request/responses.

Basically there are two options:
1.Configure a global proxy for all applications using WinHttp following the instructions above.
2.In your code when constructing the http_client explicitly specify a proxy that should be used with the http_client_config class. Take a look at http_client_config::set_proxy(...).