cURL Request for Node.js
cURL Request is a cURL wrapper, support all options and infos from cURL.
Why a cURL wrapper?
- All node libaries i have tested are very buggy in case you use a proxy and https
- cURL is working for all cases since years
- The wrapper is easy to use with promises
Installing
To utilize for node.js install the the npm
module:
$ npm install curl-request --save
After installing the npm
package you can now start simplifying requests like so:
const curl = new ;
If you have problems installing the dependencies, use this to build it from source:
$ npm install node-libcurl --build-from-source
Usage
const curl = new ; curl;
curl;
// File uploadcurl;
// Set tor proxycurldefaultuseProxy = true;curldefaultproxy = 'localhost:9050';curldefaultproxyType = curllibcurlproxySOCKS5_HOSTNAME;curldefaulttorControlHost = 'localhost';curldefaulttorControlPort = 9051;
// New tor identitycurl;
// Verbose outputcurldefaultverbose = true;
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request