Home > Mobile >  Want to get our school office website request cookies, cookies, not response it is empty, excuse me,
Want to get our school office website request cookies, cookies, not response it is empty, excuse me,

Time:09-21


Want to get is a cookie in the request header, code for the following:
Final Request request1=new Request. Builder ()
Url (" http://202.115.194.60/hiul3esnbtmfelpvl0lxmxu (1) (S)/default. Aspx ")
.post (requestBody)
.build();
String headers1=request1. Headers (" Cookie "). The toString ();
The e (" Cookie1, "headers1. ToString ());
And get the following situation, don't know how to solve,

So, what is this problem?

CodePudding user response:

Cookie is web server-side code acquisition or generated, you go to the empty data request is empty, of course, did you see the first interface returned to the head of the set cookies related data

CodePudding user response:

reference 1/f, wang can reply:
cookies is web server-side code acquisition or generated, you go to the empty data request is empty, of course, did you see the first interface returned to the head of the set cookies related data


But my requestBody is right, and at the time of access authentication code Set cookies