Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request_options = {
- url: options.url,
- timeout: options.timeout,
- header: options.header,
- method: options.method,
- body: options.body
- }
- if (!options.no_proxy) {
- request_options.proxy = "http://" + this.proxy.getProxy();
- }
- request(request_options, function (error, response, body) {
- console.log(error);
- console.log("body : ",body);
- ..............
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement