Even more simple and Reliable!
General Syntax:
sudo {http,https,ftp}_proxy=http://<username>:<password>@<proxy_url/_proxyip>:<port>/ wget --timeout=5 --no-check-certificate http://<website_url>
Example:
[root@localhost ~]# sudo {http,https,ftp}_proxy=http://username:[email protected]:6050/ wget --timeout=5 --no-check-certificate http://google.com
{http,https,ftp}_proxy -> http, https, ftp urls. Seperated by comma.
--timeout=5 -> Connection to keep alive in seconds.
-no-check-certificate -> Ignore SSL / Certificate Verification.
--spider -> If you want to test the connectivity without downloading the file.
Notes:
Online Converter:
Replace special characters with its equivalent hexadecimal unicode.
For a list of unicodes refer the website https://unicode-table.com (or) http://unicodelookup.com
Local Converter using Python:
Reference: conversion of password "p@s#w:E" to unicode will be as follows,
@ = %40
$ = %24
# = %23
: = %3A
p@s#w:E = p%40s%23w%3AE
Input:
[root@localhost ~]# python -c "import sys, urllib as enc; print enc.quote_plus(sys.argv[1])" "p@s#w:E"
Output:
p%40s%23w%3AE