Maida umarnin CURL zuwa lambar neman Node akan layi

Curl command

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

CURL zuwa Neman Node akan layi

Wannan kayan aikin yana taimaka muku ƙirƙirar lambar neman Node bisa umarnin CURL. Kwafi da liƙa umarnin CURL kuma ƙirƙirar Buƙatun Node.

Me za ku iya yi da CURL zuwa Node Request mai sauya kan layi?

  • CURL zuwa Neman Node kayan aiki ne na musamman don canza umarnin CURL zuwa Buƙatun Buƙatun Node. Shigar da shigarwar ta hanyar umarnin CURL na mai amfani don samar da lambar neman Node.
  • Wannan kayan aikin yana adana lokacinku kuma yana taimakawa ƙirƙirar lambar Neman Node cikin sauƙi.
  • CURL zuwa Node Request yana aiki da kyau akan Windows, MAC, Linux, Chrome, Firefox, Edge da Safari.

menene CURL?

CURL kayan aikin layin umarni ne mai buɗewa wanda ke zazzage fayiloli daga gidan yanar gizo. Yana goyan bayan ka'idoji iri-iri, gami da Neman Node, Node RequestS, FTP, SFTP, TFTP, Gopher da sauransu.

Ta yaya ake canza CURL zuwa lambar neman Node? 

Mataki 1: Manna kuma canza buƙatun CURL ɗin ku zuwa lambar neman Node

Mataki 2: Kwafi lambar buƙatar Node

Maida CURL zuwa Misalin Neman Node

CURL
curl example.com
Neman Node
var request = require('request');

var options = {
    url: 'http://example.com'
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);