Ion.with(getApplicationContext())
.load("http://192.168.1.117/temp_cbtserver/biometric/AE13762513.min1")
.asString()
.withResponse()
.setCallback(new FutureCallback<Response<String>>() {
@Override
public void onCompleted(Exception e, Response<String> result) {
Log.d(TAG, "##:code: " + result.getHeaders().code());
Log.d(TAG, "##:message: " + result.getHeaders().message());
if (e == null) {
Log.d(TAG, "##:Response: \n" + result.getResult());
} else {
if (BuildConfig.DEBUG)
e.printStackTrace();
}
}
});
This url http://192.168.1.117/temp_cbtserver/biometric/AE13762513.min1 does not exist so it should return 404 code but its returning 200 along with the File not found html message as the response. Check the log message below.
Here is my code for Ion
This url
http://192.168.1.117/temp_cbtserver/biometric/AE13762513.min1
does not exist so it should return 404 code but its returning 200 along with the File not found html message as the response. Check the log message below.This is how the html response looks like.![Error 404](https://i.imgur.com/mJHHvrA.png)
I have also tested the same url using volley, it gave 404 which is correct. Check the volley response below.