fix http query and post