订单拉取接口增加请求头
This commit is contained in:
parent
e6b4ddec4e
commit
1efa961ce9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue