http.sh 233 B

12345678910111213
  1. # usage: . http.sh [ip:port]
  2. http_proxy=http://127.0.0.1:58010
  3. if [[ $# > 0 ]]; then
  4. http_proxy=http://$1
  5. fi
  6. echo "export https_proxy=${http_proxy}"
  7. export http_proxy=$http_proxy
  8. export https_proxy=$http_proxy
  9. curl google.com