Write our own HTTP client instead of using curl. Not finished yet (missing URL parsin...