mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Fixing fetch in httpGet
This commit is contained in:
parent
0e91042a5b
commit
be69a63c89
@ -33,7 +33,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ httpGet()
|
|||||||
case "$configuredClient" in
|
case "$configuredClient" in
|
||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ currencyCodes=(AUD BGN BRL CAD CHF CNY CZK DKK
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
geo/geo
2
geo/geo
@ -31,7 +31,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ httpGet()
|
|||||||
curl) curl -A curl -s "$@" ;;
|
curl) curl -A curl -s "$@" ;;
|
||||||
wget) wget -qO- "$@" ;;
|
wget) wget -qO- "$@" ;;
|
||||||
httpie) http -b GET "$@" ;;
|
httpie) http -b GET "$@" ;;
|
||||||
fetch) fetch -o "..." ;;
|
fetch) fetch -q "$@" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user