订单拉取接口增加请求头

This commit is contained in:
Lenovo 2024-07-26 10:55:07 +08:00
parent e6b4ddec4e
commit 1efa961ce9
1 changed files with 2 additions and 0 deletions

View File

@ -564,6 +564,8 @@ public class MeituanServiceImpl implements IMeituanService {
HttpEntity entity = builder.build();
httpPost.setEntity(entity);
httpPost.setHeader("Cookie", cookie);
httpPost.setHeader("Host","waimaieapp.meituan.com");
httpPost.setHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36");
CloseableHttpClient client = proxyHttpClient();
// CloseableHttpClient client = HttpClientBuilder.create().build();