[英]Unknown HTTP GET request in React Native Application
Our tester captured some unknown GET request while doing API testing in our React Native application. 我们的测试人员在我们的React Native应用程序中进行API测试时捕获了一些未知的GET请求。
GET /inspector/device?name=some_unique_id&app=com.companyname.appname HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: encrypted key
Sec-WebSocket-Version: 13
Host: localhost:8082
Accept-Encoding: gzip, deflate
User-Agent: okhttp/3.11.0
Could someone give me some idea what is this and why is this called.? 有人可以告诉我这是什么,为什么叫它。
Thanks. 谢谢。
It seems the line may comes from RCTInspectorDevServerHelper.mm . 似乎该行可能来自RCTInspectorDevServerHelper.mm 。 You can see the line 你可以看到线
return [NSURL URLWithString:[NSString stringWithFormat:@"http://%@/inspector/device?name=%@&app=%@",
getServerHost(bundleURL, inspectorProxyPort),
escapedDeviceName,
escapedAppName]];
inside getInspectorDeviceUrl function, which seems to be called each time the app is loaded to connect with the bundle. 在getInspectorDeviceUrl函数内部,该函数似乎在每次加载应用程序以与捆绑软件连接时调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.