Basic HTTP connection handling