java.io.IOException

Server returned HTTP response code: 403 for URL:

Samebug tips1

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web10745

  • via Google Groups by Mike Baroukh, 1 year ago
    Server returned HTTP response code: 403 for URL: https://<url>
  • Server returned HTTP response code: 403 for URL: http://www.google.com/
  • Server returned HTTP response code: 403 for URL: http://www.google.com
  • Stack trace

    • java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149) at test.testReport.main(testReport.java:234)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 6 days ago
    10 times, 1 month ago
    Once, 1 month ago
    4 times, 6 months ago
    Once, 6 months ago
    75 more bugmates