Both POST and GET work now.
Added timeouts for all read and connect operations to avoid blocking.