java


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.

Related Links

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?

Categories

HOME
cakephp
java
google-chrome-extension
azure-data-factory
heroku
plone
angular-material
octobercms
rsyslog
adb
getelementsbytagname
webpack-2
qore
basic
dax
handsontable
google-cloud-ml
gz
hex-editors
quickfix
clojurescript
telephony
pc
nas
object-detection
blazemeter
semantic-analysis
fgetcsv
linkerd
windows-error-reporting
elasticsearch-ruby
bcd
nameservers
fog
bower-install
main
libvpx
sharefile
hilbert-curve
xenforo
android-fingerprint-api
unoconv
sfdc
sql-server-agent
quadratic-programming
firebase-admin
spring-security-kerberos
keydown
vao
businessworks
auto-update
angular-resource
avconv
flickr-api
outlook-2013
aurelia-validation
namecoin
angular-strap
impresspages
system.management
photobucket
historian
intel-fortran
drawbitmap
generic-programming
apache-commons-net
system.reflection
asp.net-dynamic-data
qcodo
starcluster
htmlcleaner
message-driven-bean
prettify
runtime.exec
tws
eclipse-memory-analyzer
qt-faststart
unc
gil
propertyeditor
objective-c-2.0
enter
gnu-prolog
libc++
javax.script
mongomapper
visitor-statistic
icanhaz.js
getresponsestream
ext3
castle-monorail
database-management
zend-tool
audio-capture
ctp4
aquaticprime
geneva-server
multiple-languages
uiq3

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App