Handle redirects properly; send a sensible Accept: header (derived from liblod's)