A synchronous http(s) client for node.js
C++ JavaScript
Pull request Compare This branch is 61 commits behind dhruvbird:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
curllib.cc
http-sync.js
test.js
test_require.js
wscript

README.md

You will need:

  • node.js source code
  • v8 source code
  • libcurl development package

Building:

node-waf configure && node-waf build

Copy Generated library to current directory:

cp build/default/curllib.node .

Run the test.js file:

node test.js

Using:

// Test GET request
var req = http_sync.request({
    host: 'nodejs.org', 
    path: '/'
});

var res = req.end();
console.log(res);
console.log(res.body.toString());