Package Exports
- urllib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (urllib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
urllib
Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Like python urllib module.
Install
$ npm install urllib
Usage
urllib.request()
var urllib = require('urllib');
urllib.request('http://cnodejs.org/', { wd: 'nodejs' }, function(err, data, res) {
console.log(res.statusCode);
console.log(res.headers);
console.log(data.toString());
});
TODO
- Auto redirect handle.
- Bash auth support.
Authors
Below is the output from git-summary
.
project: urllib
commits: 13
files : 12
authors:
12 fengmk2 92.3%
1 aleafs 7.7%