from open() to net/http