Packages

request

2.88.2 · 11 Feb 2020Apache-2.013.5M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: request has been deprecated, see https://github.com/request/request/issues/3142What to use instead
Your version

2.31.0

8 Jan 2014Where it was published

2.88.2 is the newest release of 2.x.

npm marks 2.31.0 as deprecated: request has been deprecated, see request/request#3142

In short

20 new1 faster36 fixed102 changed6 internal

Security

2 advisories affect 2.31.0; 2.68.0 fixes the others

Release note

v2.31.0 (2014/01/08)

  • Update twitter api url to v1.1

  • README: Markdown code highlight

  • Updating setCookie example to make it clear that the callback is required

  • Add note about JSON output body type

  • README example is using old cookie jar api

  • Fix callback arguments documentation

  • JSHINT: Creating global 'for' variable. Should be 'for (var ...'.

  • Better HTTP DIGEST support

  • Fix TypeError when calling request.cookie

  • Fix requester bug

  • README.md: Add custom HTTP Headers example.

  • Made a comment gender neutral.

  • Request.multipart no longer crashes when header 'Content-type' present

  • Fixing listing in callback part of docs.

  • Edited README.md for formatting and clarity of phrasing

  • Handle blank password in basic auth.

  • Optional dependencies

  • Travis CI support

  • Change cookie module,to tough-cookie.please check it .

  • Make ciphers and secureProtocol to work in https request

  • Test case for #304.

  • Option.tunnel to explicitly disable tunneling

  • Fix failure when running with NODE_DEBUG=request, and a test for that

  • Send random cnonce for HTTP Digest requests

  • Decouple things a bit

  • Fixes #583, moved initialization of self.uri.pathname

  • Only include ":" + pass in Basic Auth if it's defined (fixes #602)

  • Global agent is being used when pool is specified

  • Emit complete event when there is no callback

  • Prevent setting headers after they are sent

  • Global cookie jar disabled by default

  • Update http-signature version.

  • Use agentOptions to create agent when specified in request

  • Fix redirections

  • The exported request function doesn't have an auth method

  • Expose Request class

  • Allow explicitly empty user field for basic authentication.

  • Added redirect event

  • Fix basic auth for passwords that contain colons

  • Improving test-localAddress.js

  • Dependencies versions bump

  • Updating dependencies

  • Fixing test-tunnel.js

  • Update internal path state on post-creation QS changes

  • Add HTTP Signature support.

  • Fix POST (and probably other) requests that are retried after 401 Unauthorized

  • Honor the .strictSSL option when using proxies (tunnel-agent)

  • Make password optional to support the format: hostname

  • Add 'localAddress' support

  • Moving response emit above setHeaders on destination streams

  • Empty response body (3-rd argument) must be passed to callback as an empty string

  • Changing so if Accept header is explicitly set, sending json does not ov...

  • Use unescape from querystring

  • V0.10 compat

  • Using querystring library from visionmedia

  • Strip the UTF8 BOM from a UTF encoded response

  • Hawk 0.10.0

  • If query params are empty, then request path shouldn't end with a '?' (merges cleanly now)

  • Hawk 0.9.0

  • Copy options before adding callback. (@nrn, @nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)

  • Destroy the response if present when destroying the request (clean merge)

  • Twitter Oauth Stuff Out of Date; Now Updated (@joemccann, @isaacs, @mscdex)

  • Rename googledoodle.png to .jpg (@nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)

  • Convenience method for PATCH

  • Protect against double callbacks on error path

  • Added support for HTTPS cert & key

  • Respect specified {Host,host} headers, not just {host}

  • Add more auth options, including digest support

  • Optimize environment lookup to happen once only

  • Add more reporting to tests

  • Ensure "safe" toJSON doesn't break EventEmitters

  • Resolving "Invalid signature. Expected signature base string: "

  • Fixes missing host header on retried request when using forever agent

  • Headers lost on redirect

  • Fix for missing oauth_timestamp parameter

  • Correct Host header for proxy tunnel CONNECT

  • Twitter reverse auth uses x_auth_mode not x_auth_type

  • Don't remove x_auth_mode for Twitter reverse auth

  • Make AWS auth signing find headers correctly

  • rfc3986 on base_uri, now passes tests

  • Running rfc3986 on base_uri in oauth.hmacsign instead of just encodeURIComponent

  • Don't create a Content-Length header if we already have it set

  • Delete self._form along with everything else on redirect

  • Stop sending erroneous headers on redirected requests

  • Fix #296 - Only set Content-Type if body exists

  • Allow AWS to work in more situations, added a note in the README on its usage

  • Request.defaults() doesn't need to wrap jar()

  • Fix + test for piped into request bumped into redirect. #321

  • Do not try to remove listener from an undefined connection

  • Pass servername to tunneling secure socket creation

  • Workaround for #313

  • Allow parser errors to bubble up to request

  • A test for #289

  • Like in node.js print options if NODE_DEBUG contains the word request

  • Fix #206 Change HTTP/HTTPS agent when redirecting between protocols

  • Documenting additional behavior of json option (@jphaas, @vpulim)

  • Boundary begins with CRLF? (@elspoono, @timshadel, @naholyr, @nanodocumet, @TehShrike)

  • Remove stray console.log() call in multipart generator.

  • Composability updates suggested by issue #239

  • OAuth Authorization header contains non-"oauth_" parameters

  • Fix tests with boundary by injecting boundry from header

  • Pipe back pressure issue

  • I'm not OCD seriously

  • Bug in OAuth key generation for sha1

  • uncaughtException when redirected to invalid URI

  • JSON test should check for equality

  • Setting 'pool' to 'false' does NOT disable Agent pooling

  • Fix for the fix of your (closed) issue #89 where self.headers[content-length] is set to 0 for all methods (@sethbridges, @polotek, @zephrax, @jeromegn)

  • Multipart allow body === '' ( the empty string )

  • Fixed just another leak of 'i'

  • Fixing the set-cookie header

  • Dynamic boundary

  • Don't error when null is passed for options

  • Replace all occurrences of special chars in RFC3986 (@chriso, @vpulim)

  • Multipart content-type change

  • Need to use Authorization (titlecase) header with Tumblr OAuth

  • Fix cookie and redirect bugs and add auth support for HTTPS tunnel

  • Tunnel

  • Bugfix on forever usage of util.inherits

  • Make ForeverAgent work with HTTPS

  • Fixes GH-119

  • Add abort support to the returned request

  • Querystring option

  • Fix request.defaults to support (uri, options, callback) api

  • Modified the post, put, head and del shortcuts to support uri optional param

  • Fix to add opts in .pipe(stream, opts)

  • Issue #173 Support uri as first and optional config as second argument

  • Can't create a cookie in a wrapped request (defaults)

  • Picking off an EasyFix by adding some missing mimetypes.

  • Fix cookie jar/headers.cookie collision

  • Fix issue #159

  • Add option followAllRedirects to follow post/put redirects

  • Retry Agent

  • Multipart should respect content-type if previously set

  • Added "form" option to readme

  • Fixed cookies parsing

  • Host vs hostname

  • Return the body as a Buffer when encoding is set to null

  • Support using a custom http-like module

  • Cookie handling contains bugs

  • Another patch for cookie handling regression

  • Remove the global i

  • Update to Iris Couch URL

  • Can't post binary to multipart requests

  • Added test for proxy option.

  • Implemented cookies - closes issue 82: #82

  • Authless parsed url host support

  • Enhance redirect handling

  • Don't try to do strictSSL for non-ssl connections

  • Bug when a request fails and a timeout is set

  • Add test script to package.json (@isaacs, @aheckmann)

  • Fix #71 Respect the strictSSL flag

  • Flatten chunked requests properly

  • Fixed global variable leaks

  • Do not overwrite established content-type headers for read stream deliver

  • Parse json: Issue #51

  • Added timeout option

  • The "end" event isn't emitted for some responses

  • Error on piping a request to a destination

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.