您正在像这样在URL中传递参数:http : //XXX.com/xyz/api/sap-client=100&sap-user=username&sap-password=xxxxx“
取而代之的是,您应该传递这样的参数:request.addProperty(“ sap-client”,“ 100”); request.addProperty(“ sap-user”,“ *”); request.addProperty(“ sap-password”,“ *”);