Changing connection settings to work with Android 4

Android 4.x changes a connection to POST when setDoOutput(true)... made a separate initializeConnection for GET and POST