proxy server with wget or cli curl

I'm using a proxy service with an ip address and a port number.

How do I use the proxy with wget or cli curl?

set http_proxy variable. try

export http_proxy=http://yourip:yourport

then,

wget http://yourdownload