Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- try {
- // make HTTP request
- const {body} = await got('https://httpbin.io/ip', proxyOptions);
- // log the response
- console.log(body);
- } catch (error) {
- console.error(error);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement