laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 259 forks source link

SlimerJS proxy not working on windows but works on mac #642

Open caddave opened 7 years ago

caddave commented 7 years ago

versions

Steps to reproduce the issue

This is what I'm typing on mac ./slimerjs/slimerjs ./ip-logs.js --proxy=205.234.xxx.xx:1025 (working)

This is what I'm typing on windows .\slimerjs\slimerjs .\ip-logs.js --proxy=205.234.xxx.xx:1025 (not working)

Here's the code inside ip-logs.js:

const page = require('webpage').create()

page.open('http://bot.whatismyipaddress.com/', () => {
    console.log(page.plainText)
})

Actual results:

Page opens but not using proxy

Expected results:

Page opens using proxy. This works on my mac.

nroe commented 7 years ago

SlimerJS: 0.10.3, Firefox: 55, Windows 7, results: page open but not using proxy SlimerJS: 0.10.3, Firefox: 55, macOS 10.12.6, results: if proxy using auth(with --proxy-auth options), failed to connect, debug message show "the remote server refused the connection". if not, it work.

laurentj commented 6 years ago

Hi,

As indicated into the documentation, for windows, try it by removing a dash on the option name: -proxy instead of --proxy