node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป

curl

CURL -- Simple client url library, with high level request functions

Install

  npm install curl

Or from source:

  git clone git://github.com/ianjorgensen/curl.git 
  cd curl
  npm link .

Functions

curl.get

curl.get(url, options, function(err, response, body) {});

curl.post

curl.post(url, body, options, function(err, response, body) {});

curl.getJSON

curl.getJSON(url, options, function(err, response, data){});

curl.postJSON

curl.postJSON(url, data, options, function(err, response, data){});