1

I'm using Charles to debug HTTP responses made via a mobile device on my Network (i.e. there's no view source in the iPhone). I've notice that, when I make requests to google.com, Charles reports back a bunch of garbage looking stuff as the content of the response.

enter image description here

I'm not asking for charler support (or, not asking here -- I've already sent the proxy author a support ticket). I want to know what, exactly, Google's doing here. I don't think this is gzip encoding (at least the headers don't indicate it is), but I don't know if this is some sort of special, non-standard optimzation Google does, or if it's some part of HTTP/2 I'm not familiar with.

So, with the context that I'm a programmer who learned HTTP back in the late 90s -- what exactly is Google sending over the wire these days and/or what would be a good first step to understanding modern HTTP/2?

1 Answer 1

4

This is because the request is made over SSL. You are seeing the encrypted traffic. You need to tell CharlesProxy to proxy the requests for Google by going to Proxy -> SSL Proxying Settings and adding the hostname to the list of locations under the SSL Proxying tab. This will allow Charles to MITM you and decrypt the traffic before forwarding it to Google.

At least on MacOS you might need to also trust the Charles root cert. See https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.