Simple java http connection test