find a JAVA implementation Python requests module on the Internet (JAVA implements the Http request)
try {
logger1.info("===============>>>>>" + Path + "------------>>" + headers);
data= Requests.post(Path)
.headers(headers )
.requestCharset(cs)
.send()
.readToText();
}catch (Exception e){
e.printStackTrace();
data = "error";
}
where Charset cs = Charset.forName ("utf-8");
there is no problem for this code to run locally on window, but it will report an error when deployed to the server, and there is no problem with the parameters passed on the log printing. what is the reason for this?