When does the connection really open? At ..createMerchURL.openConnection () ;? or when connecting .connect () ;?
Last. The first simply parses the URL, finds the protocol, and creates the object HttpURLConnection.
How to set a url in a connection object
You can not.
and use it with connection.connect ()?
You can not.
( .openConnection())
: .