🟢fiddler脚本命令
字符串替换
class Handlers {
static function OnBeforeRequest(oSession: Session) {
// Check if the URL contains 'v1/client/agent/devices/bind'
if (oSession.uriContains("v1/client/agent/devices/bind")) {
var requestBody = oSession.GetRequestBodyAsString();
var gpuListStartIndex = requestBody.indexOf('"gpuList":[');
if (gpuListStartIndex > -1) {
var gpuListEndIndex = requestBody.indexOf(']', gpuListStartIndex) + 1;
var updatedRequestBody = requestBody.substring(0, gpuListStartIndex + 11) + newstring + requestBody.substring(gpuListEndIndex);
oSession.utilSetRequestBody(updatedRequestBody);
}
}
}
}
发送http 请求
PreviousNotImplementedError: cannot instantiate 'PosixPath' on your systemNextcuda_runtime.h: No such file or directory
Last updated