mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
Revert of last commit
This commit is contained in:
@@ -151,8 +151,8 @@ public class WebUtil {
|
|||||||
|
|
||||||
public static BufferedReader getReader(final URL url, String username, String password) {
|
public static BufferedReader getReader(final URL url, String username, String password) {
|
||||||
try {
|
try {
|
||||||
String data = URLEncoder.encode("username", "UTF-8") + "=" + URLEncoder.encode(username, "UTF-8") +
|
String data = URLEncoder.encode("username", "UTF-8") + "=" + username;
|
||||||
"&" + URLEncoder.encode("password", "UTF-8") + "=" + URLEncoder.encode(password, "UTF-8");
|
data += "&" + URLEncoder.encode("password", "UTF-8") + "=" + password;
|
||||||
|
|
||||||
URLConnection connection = url.openConnection();
|
URLConnection connection = url.openConnection();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user