I have the following code:
JEditorPane pane = new JEditorPane();
pane.setPage("http://www.google.com");
the setPage gives me the following error:
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.com
Does anyone know why?
Ok, posting as answer:
This can be a firewall or proxy block. I’ve tried the code here and works fine.