SurferTim:
If agent is chrome, close connection immediately after transferring the last byte.
Let me reword that for you:
If agent is anything, close connection immediately after transferring the last byte.
Yes yes, next time I won't use the sample code Arduino provides, which doesn't voluntarily terminate connection.