Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
How can I make a code in javascript which setup a http proxy?

How can I make a code in javascript and execute it in google chrome console that make a http proxy for me. To be more clear I am going to fetch the following code in my chrome dev but does not work. I expected that return my proxyserver's IP but it does not.

 var proxyAgent = new HttpsProxyAgent('http://myproxyserver.com:3128');
 fetch('https://httpbin.org/ip?json', { agent: proxyAgent}).then(response=> 
    response.text()).then(data=>{
            console.log(data);
    }).catch(error=>{
        console.log(error);
    }); 
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!