Referring to http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html
, openConnection() is "Manipulate parameters that affect the connection to the remote resource", while connect() is "Interact with the resource; query header fields and contents."
What's the difference in practical terms? Any analogy to refer?
Does it mean, openConnection is to set the various values of any kind, such as the address, communication format, etc..
while connect() means get ready to output data and/or do work, as the connection has been established?
I'm trying to set the timeout feature, but still trying to get it to work. I had set it after calling openConnection(), and before connect(). And would like to find out the above details. So that, perhaps I can get the idea myself ;)