0

I have this query string to send a http request via a URI object, but the URI object reformats my query string, including the parameters.

1
  • 1
    You are using the constructor wrong. Your path should go in the path variable and your query string should go in the queryString variable. The URI is escaping the query because you are telling it that it's part of the path. Commented Sep 20, 2013 at 13:15

1 Answer 1

1

You're adding the "query" part to the path. You want

queryString /* misnamed */ += "/v2/cart/addProduct";
String query = "?...";
...
uri = new URI("http", null, getDomain(), 80, queryString, query, null);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.