http function for httpcode.info/