NanoHttpd is a lightweight HTTP server designed for embedding in other applications. It's only one Java file, in two "flavors", one strictly Java 1.1 compatible, and one at "current" standards. It supports GET, POST, PUT, HEAD and DELETE requests, and supports file uploading with very small memory overhead. Temp file usage and the threading model are easily customized.
PSX is a framework for developing dynamic Web sites in PHP. The goal of PSX is to help you develop RESTful APIs serving Web standard formats like JSON, XML, Atom, and RSS. It has a focus on social technologies and provides classes to use and implement OAuth, OpenID, Opengraph, Opensocial, Opensearch, PubSubHubbub, Atom, and RSS.