# Utility

## Curl with perl

{% code overflow="wrap" %}

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

{% endcode %}
