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

Using Streams instead of for loop in java 8
SSL connection with certificate
Apex to java java to apex restfull web service
Connect PC to Android device to form a Client-Server link via USB cable
Verify data in JOptionPane before it is closed
Java How to end ExecutorService after given time
How to print the text values of an XML doc with XMLEventReader when some elements don't have text
Best way to access a read-only list of strings?
How to distribute an app on Mac?
How do you connect scene builder to your main class?
Suppose method M1 calls method M2 within a program.Does the order of method definition make any difference?
Getting all positions of an occuring String using StringBuilder.indexOf()
Cannot resolve symbol Mock or InjectMocks
Click effect/animation for all application
MBTilesWriter java.lang.UnsatisfiedLinkError slice-sqlite-jdbc-3.8.7
Generic Type that has annotation entity

Categories

HOME
cakephp
log4j
mockito
read-eval-print-loop
google-docs
dxl
acquia
ios-charts
paradox
android-youtube-api
gnupg
vault
spring-tool-suite
beyondcompare
alpine
ml
arabic
tar
mmap
zurb-foundation-6
android-widget
virtualdub
entitlements
assistant
librato
ecto
kendo-ui-grid
vsts-build-task
html5-fullscreen
ios5
main
git-merge
bitbucket-pipelines
space-complexity
swift3.0.2
streamreader
g-code
eclipse-gef
galleria
komodoedit
atomicity
pubmed
python-webbrowser
slickedit
directory-structure
iso8601
pycaffe
nxt
pcf
nsfilemanager
player
ubuntu-10.04
energy
natvis
spim
msys
cartesian-product
mutation-observers
varargs
riak-cs
tableau-online
unity3d-gui
ami
python-green
file-copying
wordpress-theme-customize
client-side-templating
project-planning
ceil
article
centos5
coverflow
file-locking
eclipse-memory-analyzer
sabredav
simba
dmoz
unc
cascalog
viewswitcher
jspinclude
onsubmit
semantic-diff
cufon
qt-jambi
zend-translate
dentrix
vc90
rescale
thunderbird-lightning
ctp4
mediarss
scripting-languages
msdev
windows-live-messenger

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App