Skip to content

Commit

Permalink
🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Oct 9, 2023
1 parent 3802907 commit 358ec87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/difegue/doujinsoft/wc24/WiiConnect24Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String sendMails(List<MailItem> mails) throws IOException {
Logger log = Logger.getLogger("WC24");

HttpClient httpclient = HttpClients.createDefault();
HttpPost httppost = new HttpPost("https://mtw." + wc24Server + "/cgi-bin/send.cgi");
HttpPost httppost = new HttpPost("http://mtw." + wc24Server + "/cgi-bin/send.cgi");

// Request parameters and other properties.
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
Expand Down Expand Up @@ -97,7 +97,7 @@ public void receiveMails() throws Exception {
// parameters.
String authString = "mlid=w" + sender + "&passwd=" + wc24Pass;
HttpPost request = new HttpPost(
"https://mtw." + wc24Server + "/cgi-bin/receive.cgi?" + authString + "&maxsize=2000000");
"http://mtw." + wc24Server + "/cgi-bin/receive.cgi?" + authString + "&maxsize=2000000");

// Execute and get the response.
HttpResponse response = httpclient.execute(request);
Expand All @@ -111,4 +111,4 @@ public void receiveMails() throws Exception {
new MailItemParser(application).consumeEmails(responseText);
}
}
}
}

0 comments on commit 358ec87

Please sign in to comment.