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