9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: mattmobile@proweb.co.uk
To: 9fans@9fans.net
Subject: [9fans] httplib.rc
Date: Sun, 22 Feb 2009 17:41:48 -0500	[thread overview]
Message-ID: <494076bdd2afece4f8d8e6de6700148c@steponnopets.net> (raw)

Hi,

while I was on holiday I made some changes to /n/sources/contrib/maht/rc/httplib.rc

I added the ability to request a specific byte range via http-ranges : -r offset count
and add the capability to include a referer header : -e referer

I also made reponses that were chunked de-chunked
(only for non ssl requests otherwise they still need piping through /n/sources/contrib/maht/dechunk.c)


The script /n/sources/contrib/maht/rc/get_file.rc resumes the download of a named file (you can't pipe out from it)
provided the server provides it!

it also requires /n/sources/contrib/maht/rc/maths.rc which adds arithmetic functions to rc

see /n/sources/contrib/maht/rc/gauss.rc for an example of the convoluted way of using that!

matt

EOT



                 reply	other threads:[~2009-02-22 22:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=494076bdd2afece4f8d8e6de6700148c@steponnopets.net \
    --to=mattmobile@proweb.co.uk \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).