In the code:
HttpURLConnection connection = (HttpURLConnection)createMerchURL.openConnection();
When is the connection getting opened actually? At ..createMerchURL.openConnection(); ? or at connection.connect();?
The latter. The former just parses the URL, finds the protocol, and creates the
How can I set URL in the connection Object
and use it with connection.connect()?
(as I am less comfortable with .openConnection())
Bad luck: get comfy with it.