Guest User

Untitled

a guest
Aug 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. var http = require('http');
  2.  
  3. var options = {
  4. host: 'http://192.168.1.6',
  5. path: '/sistema.cgi?lermc=0,33:80'
  6. }
  7. var request = http.request(options, function (res) {
  8. var data = '';
  9. res.on('data', function (chunk) {
  10. data += chunk;
  11. });
  12. res.on('end', function () {
  13. console.log(data);
  14.  
  15. });
  16. });
  17. request.on('error', function (e) {
  18. console.log(e.message);
  19. });
  20. request.end();
  21.  
  22. <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
  23. <TITLE>301 Moved</TITLE></HEAD><BODY>
  24. <H1>301 Moved</H1>
  25. The document has moved
  26. <A HREF="http://www.google.com/">here</A>.
  27. </BODY></HTML>
Add Comment
Please, Sign In to add comment