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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In