fix bugs; add sendSynchronousRequest with post method