Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A problem about instant a URL object  RSS feed

 
gao zhixin
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to use a URL object to a program. The URL is worked well in my browser(which is a RSS), but when I put it in the URL 's constructor. The JVM throw an error said the connection time out... Why? I haven't typo the URL!
 
subho saha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cannot get clear understanding of your problem. May be you should display the url so that we can have a look. Also can try HttpURLConnection.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by gao zhixin:
The JVM throw an error said the connection time out... Why?


Perhaps you're behind a firewall, and your browser is configured to use a proxy.
 
subho saha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you can use http analyser sort of software to find out whats really happening in the browser, whether any redirection is taking place or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!