Poetry Server

This is a pair exercise and must be competed in your tutorial or lab with your partner.

In this activity you will create a web server that serves poetry.

Download poetryServer.c, or copy it into your current directory on a CSE system by running

$ cp /web/cs1511/17s2/week06/files/poetryServer.c .

All you need to do is change the serveText function so that it sends a poem rather than the current message.

When you run the server program you can see the poem you made by connecting to the server in your browser at [http://localhost:1511/][].

To run Styl-o-matic:

$ 1511 stylomatic poetryServer.c
Looks good!

You’ll get advice if you need to make changes to your code.

Submit your work with the give command, like so:

$ give cs1511 wk06_poetryServer

Or, if you are working from home, upload the relevant file(s) to the wk06_poetryServer activity on Give Online.