httpreq is a Node.js library designed to simplify HTTP(S) requests. It offers a straightforward API for performing common HTTP methods, including GET, POST, PUT, PATCH, DELETE, and OPTIONS. Beyond basic requests, it supports features like file uploads, cookie management, custom headers, and basic authentication. A key distinguishing feature of httpreq is its `shuffleCiphers` option, which aims to help developers mitigate TLS fingerprinting – a technique used by some web services to identify and block automated scripts or non-browser clients based on their TLS handshake characteristics. The package is currently at version 1.1.1, with its last publication approximately two years ago, indicating a mature project in a maintenance phase with infrequent updates. It provides flexibility by supporting both traditional Node.js callback patterns and modern async/await syntax for handling responses, though it primarily operates within the CommonJS module system.
npm install httpreqVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to perform an asynchronous POST request with parameters, custom headers, and a timeout.
Add `shuffleCiphers: true` to your request options, e.g., `httpreq.get(url, { shuffleCiphers: true }, callback)`.Be aware of the project's maintenance status. For cutting-edge features or very active development, consider alternatives. For stable, proven use cases, it remains viable.
Double-check proxy settings, including `host`, `port`, and `protocol` (default is 'http'). Ensure the proxy server is reachable and properly configured.
If a progress callback is provided, handle the final request completion using the 4th parameter (the callback function) instead of `awaiting` the function call.
Run `npm install httpreq` to install the package.
Verify the target URL or proxy settings, ensure the server is running, and check network connectivity or firewall rules. If using a proxy, ensure its host and port are correct.
For development or specific use cases, you can set `rejectUnauthorized: false` in the options, but be aware of security implications. For production, ensure valid certificates are used or trusted.
Increase the `timeout` option in milliseconds or investigate network latency and server responsiveness. If a proxy is used, check its performance.
No dependency data recorded yet.