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

How to set Socket timeout of fail connecting
how can decode json data form api in android?
Disable SQLiteLog in Android
http-link to private Dropbox files
Mvvmcross Loading Indicator not showing
VideoView problems in ScrolView
Android app publishing/ google play store app publication query
Php Post FATAL EXCEPTION — Async and permission included
No resource identifier found for attribute 'isSelected' in package 'auto'
XMPP error using asmack
Android - Graying out/changing the alpha of all items aside from the selected item
How to bring ImageView in front of Button in android 5?
How to set time by location Android
Shell script to extract image of an Android mobile
androidTestCompile and dependency on another module ends with ClassNotFoundException
Not able to create Sqlite database in Cordova

Categories

HOME
google-app-engine
grok
oracle12c
c99
alexa-skills-kit
themes
switch-statement
big-o
echo
title
categorical-data
startup
searchview
red5
digital-signature
sse
selinux
rubymotion
springfox
pagespeed
roslyn
aggregation
interpreter
direct3d11
inversion-of-control
handler
bringtofront
iis-express
sqsh
event-flow
mobx
zend-debugger
r-grid
fstream
wacom
gojs
instantiation
dynamic-jasper
html-encode
pdw-file-browser
password-protection
odroid
unordered-map
ogc
escpos
avcapturedevice
phpdbg
textsum
rserve
aquamacs
avx
flyout
py2neo
google-photos
vibrate
docpad
uicolor
mongodb-php
scaffolding
freepbx
design-principles
crouton-os
lasso
cross-join
cosine-similarity
paw
tweenlite
encryption-asymmetric
matrix-inverse
wxformbuilder
synapse
unit-of-work
cnf
wp7test
android-loadermanager
redis-py
panda3d
onmousemove
appjs
matlab-load
filemerge
drawtobitmap
inline-formset
updatesourcetrigger
silverlight-oob
sun

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