I am using an HTTP proxy server to connect to the internet.
Because of that my pings are not working
says Unreachable Host
How can I configure
ping to use the HTTP proxy?
In general you can't.
You would need to somehow circumvent the proxy (change firewall settings, use a VPN, ...). Whether this is possible (and allowed) depends on your network configuration, but it's probably not possible.
As a workaround, there are many web-based ping services available (search for "web-based ping"). These will work.
You may try this,But first you have to install curl.