Unable to pass “|” in HttpGet() Class
I am calling HttpGet() request using a URI which contains a pipe character or "|" in it (url="..../AddGuestOrders?guestID=1083&strListOfItemsWithQty=19,1|20,1"). It is throwing IllegalArgumentException if I use it directly. Instead of "|" if I use ASCII value #124 then also web service is not getting called (though it is getting called properly from browser if I use #124 --> ..../AddGuestOrders?guestID=1083&strListOfItemsWithQty=19,1#12420,1). My code is... HttpGet httpget; HttpEntity httpEntity; HttpClient httpclient = new DefaultHttpClient(); httpget = new HttpGet(url); HttpResponse response = httpclient.execute(httpget); httpEntity = response.getEntity(); I need help to find some way so that I can pass "|" in my URI.
Designing a simple event-driven GUI
Getting int value from a JComboBox in NetBeans
Easiest way to render HTML from String in Java
How to get value of last node added to the database
Getting the different Content Type in the response of REST call done by REST client and Jersey Java Code
Wave Packet Fourier Algorithm in Java
Spring boot cache warm up
How do you upload a zip compressed file to OpenShift application
Android barcode (Crash when back button is pressed) [duplicate]
Apache Tomcat 9.0 ports already in use
Cross-client Identity server to client passing access token
Java 8 Optional get() method [closed]
How to get a list to a constructor through jpql query
JSF 1.2 not working at all inside JSP pages
Should I unit test hashCode/equals/toString?
How to transfer listview items to java database in JavaFX?