{"_id":"http-sync","_rev":"916294","name":"http-sync","description":"A synchronous HTTP Client library for node.js","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"time":{"modified":"2024-10-04T00:44:12.000Z","created":"2013-07-06T02:37:39.722Z","0.0.1":"2013-07-06T02:37:39.722Z","0.0.2":"2013-10-02T03:33:51.266Z","0.1.2":"2015-05-22T22:55:21.829Z","0.1.1":"2015-03-05T18:05:54.088Z","0.1.0":"2015-01-20T19:58:55.606Z","0.0.5":"2014-08-04T16:00:15.622Z","0.0.4":"2013-10-30T05:23:15.846Z","0.0.3":"2013-10-12T04:32:36.068Z"},"users":{"wangfeia":true},"author":{"name":"Dhruv Matani"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"versions":{"0.0.1":{"name":"http-sync","version":"0.0.1","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"license":"BSD","gypfile":true,"gitHead":"d6a10ccb9e154dc954c7637a274a75431987ed0d","_id":"http-sync@0.0.1","dist":{"shasum":"6e2255bda4a22e4c0c17069cdc0672a65d29d7a3","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.0.1.tgz","integrity":"sha512-TWNReirMh7Q8cZkn5ZXMBiIOkSNd61+wrvj0yXDbKffZfaEf2qs0VxHJqQfWCK4qaP6arPHs7Kr59rzVzu44AQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0Yxa2wIFy2sdNMhkzdz3cq1fN9i0wfIYpbpCh4R/xmgIhAKbMB9NpTQz8ItoZtDI+ZgeIvECeFF0pO5kCdC7EwvNE"}],"size":4348,"noattachment":false,"key":"/http-sync/-/http-sync-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1373078259722,"_cnpm_publish_time":1373078259722},"0.0.2":{"name":"http-sync","version":"0.0.2","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"}],"license":"BSD","gypfile":true,"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.0.2","dist":{"shasum":"8653b283a536798395b33828e7f2c74319ad0854","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.0.2.tgz","integrity":"sha512-7f0X2YialYSSmEBymyWH9zxp1uQMjYyBCdAy9OjR7Tj0kEOeGo4hZAeHSH6uS4TbVxWOtR+f3K+XtD382QEP2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICY9/I7x9UpVUnwfHfHoJayZLPfx93UEa3/0BKPz9v27AiEAg+6h4muv6/3dv6t5rrvu7eMddgLhzTXjzyswcIWsD5I="}],"size":5376,"noattachment":false,"key":"/http-sync/-/http-sync-0.0.2.tgz"},"_from":"https://github.com/dhruvbird/http-sync/archive/v0.0.2.tar.gz","_resolved":"https://github.com/dhruvbird/http-sync/archive/v0.0.2.tar.gz","_npmVersion":"1.3.8","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1380684831266,"_cnpm_publish_time":1380684831266},"0.1.2":{"name":"http-sync","version":"0.1.2","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"test":"node test/index.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"},{"name":"Bryan Rockwood","url":"https://github.com/brockwood"},{"name":"Jan Krems","url":"https://github.com/jkrems"},{"name":"Boris Serdyuk","url":"https://github.com/just-boris"},{"name":"Chad Hatcher","url":"https://github.com/chatcher"}],"license":"BSD","gypfile":true,"dependencies":{"nan":"~1.8.0","caseless":"~0.9.0"},"gitHead":"ac88a1a4bf20375e23fac1993307c10f016bb1d6","bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"homepage":"https://github.com/dhruvbird/http-sync#readme","_id":"http-sync@0.1.2","_shasum":"ec59f1f345561920a39122e21944eebbd79322bc","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"dist":{"shasum":"ec59f1f345561920a39122e21944eebbd79322bc","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.1.2.tgz","integrity":"sha512-GWyxDzSSt0xsNcxxXT2XTjCZiC4rLDynrDwMyGLfMRyq6ymInNC77vSqLhFHuNRKdoV93qHA5FdVdo3YNHNiHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNto9drG2TKnEfDOjL5n6xt72kFdhqsKlm4Tt0tVg5TAiAqHAoN7OOrzvHs3FNkATOhQdLPtgPNajufISEKd4+Asg=="}],"size":8597,"noattachment":false,"key":"/http-sync/-/http-sync-0.1.2.tgz"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1432335321829,"_cnpm_publish_time":1432335321829},"0.1.1":{"name":"http-sync","version":"0.1.1","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"test":"node test/index.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"},{"name":"Bryan Rockwood","url":"https://github.com/brockwood"}],"license":"BSD","gypfile":true,"dependencies":{"nan":"~1.6.2","caseless":"~0.9.0"},"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.1.1","dist":{"shasum":"59f26d252038a49ec080c29bdbfb9c80fb26b273","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.1.1.tgz","integrity":"sha512-YK617axcJojORQ8tBz3HaUUDH8rLlzJmT2NHXcLo7nrun/7kcWqvxgnO9BGWR9Wx6iFIzJDti6I/E2y+ZbSDOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ+c8wUVrlS5SBxVCMYPGHhbKEJBw3cRwDEuurueKZbAiAmY3J+lrCaKxc6vDMTQd8fJ20DIqFZLcOK7sBJMGBIJA=="}],"size":8395,"noattachment":false,"key":"/http-sync/-/http-sync-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1425578754088,"_cnpm_publish_time":1425578754088},"0.1.0":{"name":"http-sync","version":"0.1.0","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"},{"name":"Bryan Rockwood","url":"https://github.com/brockwood"}],"license":"BSD","gypfile":true,"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.1.0","dist":{"shasum":"c9868f5214d1fffb165de5801f82fe6a1703bba6","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.1.0.tgz","integrity":"sha512-nyXTGXpnlmTymfduAz6ykJR1PU05ADKao/e1tErcQT4JIYrFy1SGLfrvhos0bicKwrc2tnKHWYAqk2HAvQABJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcwt/1OWzdbvlWWyyE3OufwFoJUPkmGYviZiHILle+hAIhAMGWXWEsF7P3gLu5+xMJeaF6DFjQAmqmVe5t+bNQwev7"}],"size":7212,"noattachment":false,"key":"/http-sync/-/http-sync-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1421783935606,"_cnpm_publish_time":1421783935606},"0.0.5":{"name":"http-sync","version":"0.0.5","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"}],"license":"BSD","gypfile":true,"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.0.5","dist":{"shasum":"d27180f000f275885b0685cd7e93b45aca418ead","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.0.5.tgz","integrity":"sha512-UEHxQuBTE5moCWpbVCkyo3tm9uvNbwWzXARoON0n1d/0+bg5MG+v4S83ygdFPHDIxgPVaCMoq/67RilBdFbEmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3MJgC4UvDeC8zVOxykF+CNMUrPxAPAsq9o1iU8VU1WgIgJXWi16pqLqOsk8CB5QoVg9Z9BVymsBAarj2jK88HZQk="}],"size":6448,"noattachment":false,"key":"/http-sync/-/http-sync-0.0.5.tgz"},"_from":"https://github.com/dhruvbird/http-sync/archive/v0.0.5.tar.gz","_resolved":"https://github.com/dhruvbird/http-sync/archive/v0.0.5.tar.gz","_npmVersion":"1.3.11","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1407168015622,"_cnpm_publish_time":1407168015622},"0.0.4":{"name":"http-sync","version":"0.0.4","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"}],"license":"BSD","gypfile":true,"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.0.4","dist":{"shasum":"f2821dcb997b83baf1f7c859394ed6af113ad558","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.0.4.tgz","integrity":"sha512-g08XjcJ7Dt8/jvHT1kZ6Ahz7UWSRjnrRha+dgkiXjFc4JgHLESiF40upvjZ43By4dVU7IlZ5Tfz2JdxKWhynUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkWNLEwfc/R5QLv6CKk1hcD/U5vVFEzYZ5SD7F2bqHygIhALF0+08CSTGs9+6cqfCKq2PtrqR87b5R/d7E42AqKBtu"}],"size":6381,"noattachment":false,"key":"/http-sync/-/http-sync-0.0.4.tgz"},"_from":"https://github.com/dhruvbird/http-sync/archive/v0.0.4.tar.gz","_resolved":"https://github.com/dhruvbird/http-sync/archive/v0.0.4.tar.gz","_npmVersion":"1.3.8","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1383110595846,"_cnpm_publish_time":1383110595846},"0.0.3":{"name":"http-sync","version":"0.0.3","description":"A synchronous HTTP Client library for node.js","main":"http-sync.js","scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git://github.com/dhruvbird/http-sync.git"},"author":{"name":"Dhruv Matani"},"contributors":[{"name":"Sean Massa","email":"endangeredmassa@gmail.com","url":"http://massalabs.com/"},{"name":"Taro Kobayashi","email":"9re.3000@gmail.com","url":"http://tech.kayac.com/"},{"name":"Charles Bourasseau","url":"https://github.com/cbou"}],"license":"BSD","gypfile":true,"bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"_id":"http-sync@0.0.3","dist":{"shasum":"33894fc80b747b50d5978e8462ff227efcf36389","tarball":"http://registry-npm.ywwl.com/http-sync/download/http-sync-0.0.3.tgz","integrity":"sha512-1l0aBIK63JkubwJbNsSDvM2s0NUYuXu6KO6Zr0rJa8dvO4v4DBXW2i2u3EPvWOwzwQVQUriozCMp5eGueHNDMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaSYMuEuVutVzfGAQBqglIvDmCAHN43vqik5dXoOJpwgIgFYQMC+ofAp9vKYm/wvwnhXnbDL+Lu/RuOehKJeOqjCI="}],"size":6220,"noattachment":false,"key":"/http-sync/-/http-sync-0.0.3.tgz"},"_from":"https://github.com/dhruvbird/http-sync/archive/v0.0.3.tar.gz","_resolved":"https://github.com/dhruvbird/http-sync/archive/v0.0.3.tar.gz","_npmVersion":"1.3.8","_npmUser":{"name":"dhruvbird","email":"dhruvbird@gmail.com"},"maintainers":[{"name":"dhruvbird","email":"dhruvbird@gmail.com"}],"directories":{},"publish_time":1381552356068,"_cnpm_publish_time":1381552356068}},"readme":"# http-sync\n\nhttp-sync is a compiled Node.js extension that provides syncronous http calls.\n\n# Installing\n\nYou must have libcurl installed in order to compile this extension.\n\nOn Ubuntu, you can run: `sudo apt-get install libcurl4-openssl-dev`\nOn CentOS, you can run: `sudo yum install libcurl libcurl-devel`\n\n# Using\n\n```javascript\n// example with default options\nhttpSync = require('http-sync');\n\nvar request = httpSync.request({\n    method: 'GET',\n    headers: {},\n    body: '',\n\n    protocol: 'http',\n    host: '127.0.0.1',\n    port: 80, //443 if protocol = https\n    path: '/'\n});\n\nvar timedout = false;\nreq.setTimeout(10, function() {\n    console.log(\"Request Timedout!\");\n    timedout = true;\n});\nvar response = request.end();\n\nif (!timedout) {\n    console.log(response);\n    console.log(response.body.toString());\n}\n```\n\n# SSL/TLS Options\n\nIf you require the use of a private CA or client certificate authentication, the following options are available:\n\n* pfx - Path to certificate, private key and CA certificates to use\n* ca - Path to an authority certificate\n* cert - Path to the public x509 client certificate to use\n* key - Path to the private key used for SSL\n* passphrase - A string of passphrase for the private key or pfx, if required\n\n```javascript\n// example with a private CA and client cert authentication\nhttpSync = require('http-sync');\n\nvar request = httpSync.request({\n    method: 'GET',\n    headers: {},\n    body: '',\n\n    protocol: 'https',\n    host: '127.0.0.1',\n    port: 443, // protocol = https\n    path: '/',\n    ca: '/path/to/CA',\n    cert: '/path/to/crt',\n    key: '/path/to/key',\n    rejectUnauthorized: true\n});\n\nvar timedout = false;\nreq.setTimeout(10, function() {\n    console.log(\"Request Timedout!\");\n    timedout = true;\n});\nvar response = request.end();\n\nif (!timedout) {\n    console.log(response);\n    console.log(response.body.toString());\n}\n```\n\n# Contributing\n\n## node >= v0.8.0\n\n`node-gyp configure && node-gyp build`\n\n## node < v0.8.0\n\nYou will need:\n\n* node.js source code\n* v8 source code\n* libcurl development package\n\nBuilding:\n\n    node-waf configure && node-waf build\n\n## testing\n\nRun the test.js file:\n\n    node test.js\n","_attachments":{},"homepage":"https://github.com/dhruvbird/http-sync#readme","bugs":{"url":"https://github.com/dhruvbird/http-sync/issues"},"license":"BSD"}