How to export the variable "http_proxy" when there are special characters in password?

Solution Verified - Updated -

Issue

  • How to export the variable "http_proxy" when there are special characters in password?
  • I am not able to export "http_proxy" variable when the password contains special characters, for example, password is "p@s#w:E"
# export http_proxy="http://username:p@s#w:E@server:port/"
# wget example.com
        --2011-03-15 03:30:51--  http://example.com/
        Resolving s... failed: Name or service not known.
        wget: unable to resolve host address “s”

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content