Convert CURL commands to Node HTTP code online

Curl command

Examples: GET - POST - JSON - Basic Auth - Files - Form

CURL to Node HTTP online

This tool helps you to generate Node HTTP code based on CURL command. Copy and paste CURL command and generate Node HTTP.

What can you do with CURL to Node HTTP converter online?

  • CURL to Node HTTP is very unique tool to convert CURL command to Node HTTP request of Node HTTP. The input provide by the user's CURL command to generate Node HTTP code.
  • This tool saves your time and helps to generate Node HTTP code with ease.
  • CURL to Node HTTP works well on Windows, MAC, Linux, Chrome, Firefox, Edge and Safari.

what is CURL?

CURL is an open-source command line tool that downloads files from the web. It supports a variety of protocols, including Node HTTP, Node HTTPS, FTP, SFTP, TFTP, Gopher and others.

How do convert CURL to Node HTTP code? 

Step1: Paste and convert your CURL requests to Node HTTP code

Step2: Copy Node HTTP code

Convert CURL to Node HTTP example

const http = require("http");

const options = {
  "method": "GET",
  "hostname": "",
  "port": null,
  "path": "/",
  "headers": {}

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {

  res.on("end", function () {
    const body = Buffer.concat(chunks);