My code
url = "https://www.payumoney.com/payment/payment/addPaymentSplit?merchantKey=test&merchantTransactionId=test&totalAmount=0&totalDiscount=0&jsonSplits=[{"amountToBeSettled":0,"aggregatorDiscount":0,"splitDetails":"test","CODAmount":0,"splitAmount":0,"merchantId":"0000","aggregatorCharges":0,"CODMode":0,"aggregatorSubTransactionId":"test","sellerDiscount":0}]"
CloseableHttpClient client = HttpClients.createDefault();
HttpPost post = new HttpPost(url);
I am getting illegal character error on the second line. I tried encoding [ to %5B and ] to %5D. Still the same error.
using apache-commons-httpclient library.