79315974

Date: 2024-12-29 16:56:20
Score: 1
Natty:
Report link
    URL url = new URL(endPoint);
    String encoding = Base64.encodeBase64String(this.key.getBytes());

    connection = (HttpURLConnection) url.openConnection();
    connection.setRequestMethod("POST");
    connection.setDoOutput(true);
    connection.setRequestProperty  ("Authorization", "Basic " + encoding);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amirxshot