Curl not working with http/socks proxy on a live server

view story

http://stackoverflow.com – Duplicate : Using proxy, using curl, working on localhost but not on server but unanswered and I've already tried what it says, no use. I tried connecting to my dedicated server through SSH and tried using socks/http proxies both, but both of them return error 7. Although the same script works fine on my local XAMPP with both http & socks proxy. I've already created a ticket about it for the server support. But I'll be glad to know the reason behind and if possible how to solve it. (HowTos)