hurl

Gopher/HTTP/HTTPS file grabber
git clone git://git.codemadness.org/hurl
Log | Files | Refs | README | LICENSE

hurl.1 (1005B)


      1 .Dd November 16, 2018
      2 .Dt HURL 1
      3 .Os
      4 .Sh NAME
      5 .Nm hurl
      6 .Nd HTTP/HTTPS/Gopher file grabber
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl m Ar filesize
     10 .Op Fl t Ar timeout
     11 .Ar url
     12 .Sh DESCRIPTION
     13 .Nm
     14 fetches data and writes it to stdout.
     15 .Nm
     16 supports the protocols: HTTP, HTTPS and Gopher.
     17 .Pp
     18 The options are as follows:
     19 .Bl -tag -width Ds
     20 .It Fl m Ar filesize
     21 Maximum size of the data in bytes.
     22 .It Fl t Ar timeout
     23 Maximum time for the connection and fetching the data in seconds.
     24 The default is 10 seconds.
     25 .El
     26 .Pp
     27 For HTTP and HTTPS it will write the data except the header to stdout when the
     28 HTTP statuscode is "200 OK" and exit with statuscode 0 when all data is
     29 successfully written. When the header is retrieved but it is not "200 OK" it
     30 will write the HTTP header to stderr and exit with a non-zero statuscode.
     31 .Pp
     32 For Gopher it will write the data to stdout and exit with statuscode 0 when all
     33 data is successfully written.
     34 .Sh SEE ALSO
     35 .Xr ftp 1 ,
     36 .Xr nc 1
     37 .Sh AUTHORS
     38 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org