Fix socket web request interface