Utility

Curl with perl

alias pcurl='perl -MHTTP::Tiny -e '\''$_=shift;$_="http://$_" unless /^https?:\/\//;print HTTP::Tiny->new->get($_)->{content};'\'''
pcurl http://<IP>:<PORT>/<FILE> > file

Last updated

Was this helpful?