我正在尝试发送带有URL的cookie并返回URL,但是当我点击URL时,我看不到我发送的cookie。 下面是代码: 我附加的 cookie来自另一个电话。
URL url = new URL(qrl);
String cookies = "__wt1vic=406a61b147c50b3; __wt1vpc=dipInstanceId%3Daqncnqtv-a903b2a63490fe6a21a04fd77474bb0a-fef1c35d030987db7f8e96b28f8bc5f1%26dssLicenseKind%3DCUSTOMER_PROD%26bkdDistrib%3Dcentos%26bkdDistribVersion%3D7%26isAutomation%3Dfalse%26dssVersion%3D5.0.1%26vdssUser%3D2084196484; dss_xsrf_token_9fb6bb1614dbc0e7057b3c9d3b02384e=53ac42600851b7dd7a2f32f11c4cf38247fb9cabec431d4a5600b14afef256ba;"+cookie;
HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
httpURLConnection.setRequestProperty("Cookie",cookies);
httpURLConnection.setRequestMethod("GET");
有人可以帮我这个代码吗?