Middle
What parameters can be used for throttling in Charles?
sobes.tech AI
Answer from AI
In Charles Proxy, the following parameters can be used to configure throttling (connection speed limiting):
- Bandwidth: Limits the maximum download and upload speeds in kilobits per second (kbps).
- Latency: Adds delay (ping) to each request and response in milliseconds (ms).
- Reliability: Emulates packet loss (%) on a specified percentage of requests.
- Stability: Emulates unstable connection by adding random short disconnections.
These parameters can be applied globally to all traffic or selectively to specific hosts or IP addresses through the Throttling Settings window.
Example configuration in the Charles interface (visual):
{
"throttleSettings": {
"enableThrottling": true,
"applyToAllHosts": true,
"bandwidth": {
"download": 256, // in kbps
"upload": 128 // in kbps
},
"latency": 150, // in ms
"reliability": 5, // in % packet loss
"stability": false // enable instability
// Other parameters may be included here, such as exceptions for hosts
}
}