Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-16.dc1.easynews.com.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: JAVA Networking: Code with getInputStream() was compatible with Java 1.6, is but anymore with 1.7 Organization: Canadian Mind Products Reply-To: Roedy Green Message-ID: References: <042eb983-7952-46e4-8002-2eb5c8ff9323@googlegroups.com> <5bd3b330-86de-461e-8e4d-59c464c77a1a@googlegroups.com> User-Agent: ForteAgent/7.00.32.1200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Mon, 01 Apr 2013 12:50:30 -0700 X-Received-Bytes: 2085 Xref: csiph.com comp.lang.java.programmer:23174 On Sun, 31 Mar 2013 01:37:20 -0700 (PDT), marcos.barandun@gmail.com wrote, quoted or indirectly quoted someone who said : >Status variable (int status =3D connection.getResponseCode()) is always -1 = -1 is what happens when you get no response whatsoever. Try cranking up the timeout. Retry. Check that DNS is working. Try probe using IP. Make sure this is not redirected to https: If so anything not kosher with cert or list of CAs in cacerts will derail you. -- Roedy Green Canadian Mind Products http://mindprod.com Motors make noise, and that tells you about the feelings and attitudes that went into it. Something was more important than sensory pleasure -- nobody would invent a chair or dish that smelled bad or that made horrible noises -- why were motors invented noisy? How could they possibly be considered complete or successful inventions with this glaring defect? Unless, of course, the aggressive, hostile, assaultive sound actually served to express some impulse of the owner. ~ Philip Slater (born: 1927 age: 85) The Wayward Gate: Science and the Supernatural