php nginx 下通过curl访问http://x.index.php?ac=test&userid=123456&username=xy

在php nginx 下通过curl http://x.index.php?ac=test&userid=123456&username=xy 的方式访问一个index.php请求,后台接收到请求后,通过request.getParameter(ac)可以取到值,request.getParameter(userid)取不到值,如果在http路径中的 & 前加个 \ 就可以取到值,这种问题如何解决,不想修改URL