-
Notifications
You must be signed in to change notification settings - Fork 208
Allow for specifying schema in "proxy" #1922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
8b7b4d2
to
5b447f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
</tr> | ||
|
||
<tr> | ||
<td><code>socksVersion</code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why you removed the socksVersion
field? I thought that for socks proxies it is a mandatory field. Also if clients specify this field we would run into a backward incompatible change.
defined as being a valid <a>host</a>, optionally followed by a colon | ||
and a valid <a>port</a>. The <a>host</a> may | ||
<p>A <dfn>proxy url</dfn> is a valid <a>host</a>, optionally followed by a colon | ||
and a valid <a>port</a>, and optionally prefixed by a <a>proxy schema</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I would move the schema part before port so that the order is equal to how parts of an URL are specified.
undefined. | ||
|
||
<p>A <dfn>proxy schema</dfn> is defined as being one of the following strings: | ||
"<code>http</code>", "<code>https</code>", "<code>socks4</code>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither socks4
nor socks5
is a valid schema as supported by Firefox. For socks proxy there is usually no schema at all when specifying the host. Does Chrome support that? Also note the other comment above regarding the backward incompatible change.
Addressing #1920.
Currently, WebDriver capabilities allow for configuring proxy by protocol. Meaning the protocol traffic can be proxied via the same protocol proxy.
Chromium can proxy traffic via different proxy protocols, and can configure which proxy to use for which protocol. In Chromium, the possible proxy schemas are
http
,https
,socks4
,socks5
. Also user can configure separately proxy forHTTP
,HTTPS
and all other requests (SOCKS
).In order to allow for such configurations, we propose the following:
http
,https
,socks4
,socks5
) in the proxy url.socks
in favor ofother
proxy configuration.Preview | Diff