If your password is F@o:o!B#ar$ and set http_proxy as follows:
export http_proxy="http://user:F@oo!B#ar$@server1.cyberciti.biz:3128/"
| Tutorial details | |
|---|---|
| Difficulty | Easy (rss) |
| Root privileges | No |
| Requirements | Bash/ksh/Unix |
| Estimated completion time | N/A |
You may get the error due to special characters. The solution is to use unicode characters in hexadecimal. You can use command line tool such as unum or gnome-character-map to convert special characters into hexadecimal unicode.
Example
Convert @:!#$ into equivalent hexadecimal unicode using unum command:
$ unum '@:!#$'
Sample outputs:
Octal Decimal Hex HTML Character Unicode
0100 64 0x40 @ "@" COMMERCIAL AT
072 58 0x3A : ":" COLON
041 33 0x21 ! "!" EXCLAMATION MARK
043 35 0x23 # "#" NUMBER SIGN
044 36 0x24 $ "$" DOLLAR SIGN
In this example @ becomes %40, : becomes %3A, and so on. Find and replace all special characters with unicode hexs. Find:
F@o:o!B#ar$
Replace with:
F%40o%3Ao%21B%23ar%24
Finally, set and export http_proxy, HTTP_PROXY in the following format:
export http_proxy="http://user:F%40o%3Ao%21B%23ar%24@server1.cyberciti.biz:3128/"
Test it:
$ curl -I www.cyberciti.biz
$ wget http://www.cyberciti.biz/
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 0 comments… add one now }