PORTING: websnap