Java: split query string and uri for POST request

split the query string from uri for POST request, to support token request for server 10.3 

should fix #177