{"id":6985,"date":"2014-05-16T01:18:40","date_gmt":"2014-05-16T01:18:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/java-io-ioexception-server-returned-http-response-code-500-collection-of-common-programming-errors\/"},"modified":"2014-05-16T01:18:40","modified_gmt":"2014-05-16T01:18:40","slug":"java-io-ioexception-server-returned-http-response-code-500-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/java-io-ioexception-server-returned-http-response-code-500-collection-of-common-programming-errors\/","title":{"rendered":"java.io.IOException: Server returned HTTP response code: 500-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m facing this problem with Java. I want to get some HTML informations from a URL. This code was working for so long, but suddenly, it stopped working.<\/p>\n<p>When I access this URL using the browser, it opens with no problem.<\/p>\n<p>The code:<\/p>\n<pre><code>URL site = new URL(this.url);\njava.net.URLConnection yc = site.openConnection();\nBufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));\nString inputLine;\nString objetivo = \"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m facing this problem with Java. I want to get some HTML informations from a URL. This code was working for so long, but suddenly, it stopped working. When I access this URL using the browser, it opens with no problem. The code: URL site = new URL(this.url); java.net.URLConnection yc = site.openConnection(); BufferedReader in = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6985","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6985"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6985\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}