Getting server error 400 while connecting server using cookie stored in browser JAVA -
url url = new url("url"); urlconnection conn = url.openconnection(); // conn.setrequestmethod("get"); string mycookie = "value; jnat=value; " + "ltpatoken2=value"; conn.setrequestproperty("cookie", mycookie); conn.connect();
Comments
Post a Comment