Escape character for Proxy Credentials to selenium-manager

94 views
Skip to first unread message

David Madl

unread,
Feb 12, 2024, 12:26:36 PM2/12/24
to Selenium Users

Dear Selenium Users,

How can I pass an @ character (at sign) in a Proxy password to selenium-manager?

I suppose that the “proxy” config file value, as well as the SE_PROXY environment variable, are split upon the : and @ characters.

How can these be escaped?

Thanks,
David

princila roseline

unread,
Feb 12, 2024, 12:53:22 PM2/12/24
to seleniu...@googlegroups.com

To pass an "@" character (at sign) in a proxy password to Selenium-Manager, you can escape it using URL encoding. In URL encoding, the "@" character is represented as "%40".

Here's how you can do it:

  1. In your proxy configuration file or when setting the SE_PROXY environment variable, replace "@" with "%40" in the proxy password.

For example, if your original proxy password is "pass...@example.com", you would represent it as "password%40example.com".

  1. Selenium-Manager should then interpret "%40" as "@" when parsing the proxy configuration.

Here's an example of how you might set the SE_PROXY environment variable with the encoded proxy password:

By using URL encoding, you can ensure that special characters like "@" are properly interpreted by Selenium-Manager without causing parsing errors.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3efb8ad2-6eb9-4e1a-b10d-c5a91de9be26n%40googlegroups.com.

David Madl

unread,
Feb 15, 2024, 4:46:11 AM2/15/24
to Selenium Users
Dear Jo,

Thank you for the tip. However, passing an URL-encoded password did not work for me.
Is there an error in the example below?

set SE_PROXY=http://proxy_user:proxy_p%50ss...@proxy.local:8080
selenium-manager.exe --browser edge
...
error trying to connect: proxy authentication required

Sir Jo

unread,
Feb 15, 2024, 4:55:13 AM2/15/24
to Selenium Users

What is %50 ?????

%50 is "P" !!!

remember that "@" is %40
Reply all
Reply to author
Forward
0 new messages