From 445393482907d7739cdeec39e80b1076cedaa696 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 3 Jul 2012 16:03:38 +0800 Subject: [PATCH] Add http10 & http11 alias --- .bashrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.bashrc b/.bashrc index 8aeca4b..8372902 100644 --- a/.bashrc +++ b/.bashrc @@ -31,6 +31,19 @@ export LSCOLORS="gxfxcxdxbxegedabagacad" export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" export PERL_CPANM_OPT="--mirror http://cpan.nctu.edu.tw/ --mirror http://cpan.cpantesters.org/" # +function http10() +{ + echo "GET $1 HTTP/1.0" + echo "" +} + +function http11() +{ + echo "GET $1 HTTP/1.1" + echo "Host: $2" + echo "" +} +# if [ -z "${LANG}" ]; then export LANG="en_US.UTF-8" fi