Use server agnostic function request_get_body() instead of io.read().