#curl replaced with HTTPRequest