Socket
Book a DemoInstallSign in
Socket

http-get

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-get

Simple to use node.js HTTP / HTTPS client for downloading remote files. Supports transparent gzip / deflate decoding.

latest
Source
npmnpm
Version
0.5.10
Version published
Weekly downloads
249
-25.23%
Maintainers
1
Weekly downloads
 
Created
Source

About build status still maintained

Simple to use node.js HTTP / HTTPS client for fetching remote resources. Supports transparent gzip / deflate decoding.

The client sends GET requests for fetching the remote objects. You may send HEAD requests if you just need to check the availability of a remote resource. The error reporting is implemented with care. The module itself is used in production for background data processing of thousands of remote resources, therefore it is not your average HTTP / HTTPS node.js client. It is in use for both of the transfer modes: buffered responses or streamed to the disk responses. Most of the decisions that made their way into the http-get are based onto the experience of working with a large URL database where a lot of things can go wrong.

Installation

Either manually clone this repository into your node_modules directory, or the recommended method:

npm install http-get

Usage mode

System Requirements

  • node.js v0.6.11+ for general usage. Previous versions are broken. Invalid domain names hang the event loop #2688.
  • node.js v0.6.18+ with zlib bindings for using the transparent gzip / deflate decompression. Previous versions are broken. They don't have proper error reporting #3230. node.js v0.6.11 - v0.6.17 may be used, but options.noCompress is forced as true.
  • node.js v0.8.5+ for actually using the mandatory SSL validation. Implemented in v0.8.4, but it is broken in that version. Therefore, http-get fails for HTTPS under v0.8.4. Before that, the custom agent does no validation at all, even though the client does not fail.

This library is not recommended under node.js v0.6.17 due to this issue.

node.js v0.4 is NOT supported due to lack of zlib bindings. node.js v0.4 is only supported by the http-get v0.3 versions.

Contributors

  • cmtt - options.timeout, fixed the broken handling of buffered response when retrying the request with options.nocompress
  • elarcent - HTTP Basic auth fix
  • Gil Pedersen - Fixed the stream handling
  • Stefan Klug - Added support for custom Agent

Keywords

http

FAQs

Package last updated on 08 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts