using portsnap behind proxy

Problem : Not able to update my FreeBSD which is using proxy. I could
ping the portsnap server but not able to update ports

Solution :
need to setup a environment variable HTTP_PROXY
one of the way is by adding the folowing line in .cshrc of superuser's

setenv HTTP_PROXY http://a.b.c.d:port_of_proxy_server