While developing a port for a web site, used to download some files from it, I noticed that if I try to repeat the donwload process, I got an error from the server. Of course, I used okHTTPUtils2.
Interestingly enough, switching to the old httpUtils2, I had no problem at all with repeated downloads!
Now, I really don't want to use the old deprecated routines, but seems for now, that I can't get okHttpUtils2 to handle correctly the case. In fact, I'm not that much interested in repeated downloads, but unfortunately I have to download other files from the same site, and the result is still the same (fail).
If, however, I completely exit the app (killing it from the task manager) everything works ok again for the first time. Finally, even if clear the cache of the login webview and remove cookies, the same problem arises.
Anyone else experienced this behavior? I can provide the download source code, by private message, since it contains sensitive login information.
Interestingly enough, switching to the old httpUtils2, I had no problem at all with repeated downloads!
Now, I really don't want to use the old deprecated routines, but seems for now, that I can't get okHttpUtils2 to handle correctly the case. In fact, I'm not that much interested in repeated downloads, but unfortunately I have to download other files from the same site, and the result is still the same (fail).
If, however, I completely exit the app (killing it from the task manager) everything works ok again for the first time. Finally, even if clear the cache of the login webview and remove cookies, the same problem arises.
Anyone else experienced this behavior? I can provide the download source code, by private message, since it contains sensitive login information.