android


Getting Server Error when Posting empty String in Volley


In the post request I am posting some parameter to the server as a request body . But unable to post empty string . So the question is that can we make post request with empty string if yes then how?
My code snippet is ..
HashMap<String, String> paramList = new HashMap<>();
paramList.put("ApplicationCode", Constant.Application_Code);
paramList.put("LoginType", Constant.getLoginType(spnLoginType.getSelectedItem().toString()));
paramList.put("BrandCode", Constant.BRAND);
paramList.put("CountryCode", Constant.CountryCode);
paramList.put("CompanyId", etCompanyId.getText().toString().toUpperCase());
paramList.put("UserId", etUserId.getText().toString().toUpperCase());
paramList.put("AppVersion", Constant.API_VERSION_VALUE);
paramList.put("IpAddress", "");
paramList.put("IpAddress", ""); here I am posting empty String that
does not work
And if I post like this paramList.put("IpAddress", "null"); worked
fine.
In the server-side validation, information is being sent to the server
and validated using one of server-side languages. If the validation
fails, the response is then sent back to the client .
But when send as a String does not worked
Why ?
Sloppy mistake coming from server side. Rectify your Server-side Validation .

Related Links

Expandable GCM push `notification` from server side
How to put button on the bottom of Scrollview
How to fix “Failed to get UI hierarchy” issue while recording espresso test in android studio
Cannot Detect Alt-beacon in android
Initializing value to views in ActionBar Tab framents in android while onCreate of Tab Activity
Android Navigation Drawer Design Library on child activity bug
Firebase Datasnapshot returns null [duplicate]
Cannot use Android Crop image crop library in Android
How to sort SDCard image based on date in android
I want to add Validation for inputName , inputPrice before upload to the database
How to resolve android studio installation error(“Your android studio installation is corrupt and will not work properly.”)?
How to auto hide toolbar in webview fragments
Gradle-only solution to modify App name based on Build Variant
Android change recycler view column no. on pinch zoom
Download files from google drive to Xamarin Android Player
How to add a notification to a MediaPlayer Service?

Categories

HOME
spark-streaming
time-complexity
codenvy
apache-flink
youtube-data-api-v3
themes
sh
simulink
limit
spring-session
data-visualization
missing-data
odoo-8
pkcs#11
flume
sendgrid-api-v3
minecraft-forge
mod-security
redis-sentinel
nancy
frequency-distribution
dynatrace
symmetricds
mongodb-csharp
event-sourcing
apache2.4
googlebot
blade
php-mysqlidb
perlbrew
froala
data.stackexchange.com
ms-access-web-app
angular-translate
browser-sync
complex-numbers
jbutton
rselenium
jett
login-script
gojs
fiware-cygnus
latitude-longitude
nohup
amazon-ses
odroid
railstutorial.org
health-monitoring
p4merge
mcustomscrollbar
tasm
datacachefactory
movilizer
microsoft-metro
monkey-testing
jboss-4.2.x
sonarlint-eclipse
launchctl
datamaps
manova
lightning
remedy
spring-data-couchbase
opengl-4
arules
java-websocket
baidu
filenet
chromium-os
seek
beamer
wso2developerstudio
simevents
refinerycms
fink
false-sharing
kendo-upload
contentcontrol
ascii-art
boomerang
themoviedb-api
avisynth
lazybones
zen-cart
dock
sha512
branch-and-bound
google-refine
broadband
phpldapadmin
apache-spark-1.3
iso-prolog
tweenlite
rmysql
jquery-slider
dct
paste
radiant
gwt-openlayers
scrypt
kogrid
cnf
robotlegs
tree-balancing
floating-point-exceptions
box2d-iphone
massive
event-receiver
photolibrary
zen
sifr
visualj#
cldc
alsb
information-management
contentpresenter

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