How should I export http_proxy variable?

I'm trying to write a simple script that will set proxy settings. Actually I just need to export http_proxy ftp_proxy https_proxy ... variables with export command. But it's not working when I run it