Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var request_options = {
  2. url: options.url,
  3. timeout: options.timeout,
  4. header: options.header,
  5. method: options.method,
  6. body: options.body
  7. }
  8. if (!options.no_proxy) {
  9. request_options.proxy = "http://" + this.proxy.getProxy();
  10. }
  11. request(request_options, function (error, response, body) {
  12. console.log(error);
  13. console.log("body : ",body);
  14. ..............
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement