If you have an account (you're a member), you can see the topic. I have registered, i have an account. (I'm the admin in that forum, I made it)
Here is the code which I'm trying
Every time when I try it, I can't get the source of the topic. I get a login page source. What's the problem with it?
Joined: Mar 22, 2005
Welcome to JavaRanch.
That page doesn't use Basic Authentication (which is what your code does), it uses form authentication. You'll need to post the account info to the proper URL, after which a cookie will probably be set which must then be sent in all subsequent page accesses.
I recommend to use a library like jWebUnit (or HtmlUnit) for programmatic access to web sites; that's generally simpler than using the URL and URLConnection classes.