Low-level HTTP utilities