IMAGE=basic-perl-apache
docker build -t $IMAGE -f Dockerfile .
NAME=basic-perl-cgi
docker run -d -p 9090:80 -p 9443:443 --name $NAME $IMAGE
6268fe7866ecb0f7caf6dd852bcbcf4335f3c097649b43dd8cf5cb76bc1ed150
NAME=basic-perl-cgi
docker logs -f $NAME
[Sun Mar 26 22:37:03.213750 2023] [alias:warn] [pid 6] AH00671: The Alias directive in /etc/apache2/conf.d/mod_fcgid.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
0
wait for apache pid
apache is running with ID 7
NAME=basic-perl-cgi
docker exec -it $NAME sh
/home/docker_user # echo 123
123
docker logs $node -f
public void test3() {
final RequestId[] requestIdCaptures = new RequestId[1];
chromeDevTools.addListener(Network.responseReceived(),
(ResponseReceived event) -> {
Response response = event.getResponse();
// System.err.println(response.getStatus());
if (response.getStatus().toString().startsWith("4")) {
System.err.println(response.getUrl()
+ " has failed with status code " + response.getStatus());
}
// collect request id for some purpose
requestIdCaptures[0] = event.getRequestId();
if (cnt++ < 10)
System.err
.println(String.format("Network request %s response status: %s",
event.getRequestId(), event.getResponse().getStatus()));
try {
Network.GetResponseBodyResponse responseBody = chromeDevTools
.send(Network.getResponseBody(event.getRequestId()));
String body = responseBody.getBody();
if (responseBody.getBase64Encoded()) {
try {
body = new String(Base64.decodeBase64(body.getBytes("UTF8")));
} catch (UnsupportedEncodingException e) {
System.err.println("Exception (ignored): " + e.toString());
}
}
System.err.println("response body:\n" + (body.length() > 100
? body.substring(0, 100) + "..." : body));
} catch (DevToolsException e) {
System.err.println("Web Driver exception (ignored): "
+ Utils.processExceptionMessage(e.getMessage()));
}
});
chromeDevTools.send(Network.setCacheDisabled(true));
driver.get(url);
}
включить не забыли ? я не смотрел что networkInterceptor.StartMonitoring(); делает
* https://chromedevtools.github.io/devtools-protocol...
* https://chromedevtools.github.io/devtools-protocol...
* https://chromedevtools.github.io/devtools-protocol...
* https://chromedevtools.github.io/devtools-protocol...
* https://chromedevtools.github.io/devtools-protocol...
кстати прокет полностью покажите какая дот нет и т.д.