See https://github.com/sethwklein/gowebutil.