From the url to capture the picture to the seven cows, debugging does not work! Written by nodejs

  node.js, question
function fetchImageToQiniu(imgUrl) {
 console.log("-------------fetchImageToQiniu------------------");
 ///fetch/<EncodedURL>/to/<EncodedEntryURI>
 
 var EncodedURL = new Buffer(imgUrl).toString('base64')
 var EncodedEntryURI = new Buffer('shejiao').toString('base64');   //= config.qn_access.bucket.toString('base64');
 
 Var url = '/fetch/' plus EncodedURL plus' /to/' plus EncodedEntryURI;
 
 console.log(url)
 
 
 var sign = sha1(url)
 console.log(sign)
 var options = {
 hostname: '7xo43d.media1.z0.glb.clouddn.com',
 path: url,
 method: 'POST',
 //'User-Agent': 'curl/7.30.0',
 headers: {
 'Content-Type': 'application/x-www-form-urlencoded',
 Authorization':'QBox' plus'' plus sign
 bracket
 bracket
 
 
 
 var chunks = [];
 var req = http.request(options, function (res) {
 var html = null;
 res.on('data', function (chunk) {
 console.log("-------------login result");
 Html plus = chunk;
 });
 res.on('end', function () {
 console.log(html.toString());
 //resolve(newHeaders);
 });
 req.on('error', function (e) {
 Log ('-problemwithrequest:' add e.message);
 });
 });
 bracket

Don’t do bad things, people just give you a picture? Why don’t you start such a company, sb