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 .
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