I want to get header response of a URL by using proxy username, password, host and port? is there any Linux command to get the same response?
Something like the following should give you what you want....
(if I have understood the question correctly) Its likely possible to produce some similar result with either curl or perl with LWP module, if you are on a distro with no wget...)
Feel free to wrap the password in quotes if it contains characters that bash will interpret such as
Note that using the password on the command line like that will cause it to end up in your bash history and usually be available in a process listing while the command is running. There doesn't seem to be an option to read the password from a file but putting the whole command in a bash script will at least keep the password out of your bash history. Putting the environment variable in your