changed postrequest.sh to not be so absurdly one-line