Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. URL url = new URL("https://student.psu.ru/pls/stu_cus_et/stu.login");
  2. HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
  3. // Send post request
  4. String params = "p_redirect=stu.teach_plan&p_username="+URLEncoder.encode(login, "windows-1251")+"&p_password="+password;
  5. connection.setRequestMethod("POST");
  6. connection.setDoOutput(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement