FG
šŸ’» Software

How to use special characters in username/password for HTTP proxy?

Fresh5 days ago
Mar 15, 2026125941 views
Confidence Score0%
0%

Problem

I am trying to setup an HTTP proxy on a Windows machine. Problem is, the password has a special character (@) in it that is causing the command to fail. I have tried both escaping the character ( ) and percent-encoding it with the hex value ( ), to no avail. For example, with the username Foo and p…

Error Output

set http_proxy=http://foo:B\@r@http-gateway.domain.org:80
set http_proxy=http://foo:B%40r@http-gateway.domain.org:80

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to use special characters in username/password for HTTP proxy?

Low Risk

You have to percent-encode | encode the special characters. E.g. instead of this: you write this: So gets replaced with . Note: foo = username, b@r = password, http-gateway.domain.org = host proxy to connect

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment