Flea2Flea is a pocket web server written in Java which enables ad-hoc peer-to-peer file sharing with anyone who has an http client (web browser). Files are only accessible while you are running Flea2Flea. You have absolute control.
HTTPSession will provide a complete java library to manage HTTP client sessions. The features (will) include: cookie management, HTTP authentication, referer management, navigation history, refresh statements and HTTP redirections handling.