cannot able to post xml

just added a check, if data is in form of array then use http_build_query else post it directly.