Moved setting of URLConnections request body