Fix wrong post query seprator on some PHP install and Add curl timeout support

On some PHP install the default separator of http_build_query() is "&amp;". So, I have to set the separator to "&" in "http_build_query()".