A synchronous HTTP Client library for node.js
http-sync is a compiled Node.js extension that provides syncronous http calls.
You must have libcurl installed in order to compile this extension.
On Ubuntu, you can run:
sudo apt-get install libcurl4-openssl-dev
On CentOS, you can run:
sudo yum install libcurl libcurl-devel
// example with default optionshttpSync = ;var request = httpSync;var timedout = false;req;var response = request;if !timedoutconsole;console;
If you require the use of a private CA or client certificate authentication, the following options are available:
// example with a private CA and client cert authenticationhttpSync = ;var request = httpSync;var timedout = false;req;var response = request;if !timedoutconsole;console;
node-gyp configure && node-gyp build
You will need:
node-waf configure && node-waf build
Run the test.js file: