Added changes to HTTPSockets to create a stateful connection, not
currently working.