Comparing version 2.38.0 to 2.39.0
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.38.0", | ||
"version": "2.39.0", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -153,2 +153,15 @@ # Request -- Simplified HTTP client | ||
Note that you can also use for basic authentication a trick using the URL itself, as specified in [RFC 1738](http://www.ietf.org/rfc/rfc1738.txt). | ||
Simply pass the `user:password` before the host with an `@` sign. | ||
```javascript | ||
var username = 'username', | ||
password = 'password', | ||
url = 'http://' + username + ':' + password + '@some.server.com'; | ||
request({url: url}, function (error, response, body) { | ||
// Do more stuff with 'body' here | ||
}); | ||
``` | ||
Digest authentication is supported, but it only works with `sendImmediately` set to `false`; otherwise `request` will send basic authentication on the initial request, which will probably cause the request to fail. | ||
@@ -155,0 +168,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203501
422