cURL-style in JavaScript.