Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http');
- var options = {
- host: 'http://192.168.1.6',
- path: '/sistema.cgi?lermc=0,33:80'
- }
- var request = http.request(options, function (res) {
- var data = '';
- res.on('data', function (chunk) {
- data += chunk;
- });
- res.on('end', function () {
- console.log(data);
- });
- });
- request.on('error', function (e) {
- console.log(e.message);
- });
- request.end();
- <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
- <TITLE>301 Moved</TITLE></HEAD><BODY>
- <H1>301 Moved</H1>
- The document has moved
- <A HREF="http://www.google.com/">here</A>.
- </BODY></HTML>
Add Comment
Please, Sign In to add comment