some common http utilities