Devv Active Member Licensed User Longtime User Jun 14, 2015 #1 Code: Copy Dim job1 As HttpJob job1.PostString("http://mysite.com/test.php", "App=" & search) this code giving me java socket timeout on some devices i tried it on more than one device and more than one network the most of the problems happens with xperia ray , Samsung star dous plus one these 2 devices for 80% of the time i get that error the problem ony happens with http post not with http download and sometimes i get connection reset by server this is a rare issue on most of the devices any ideas or an alternative http post method ? or alternatives to httputlis2 ?
Code: Copy Dim job1 As HttpJob job1.PostString("http://mysite.com/test.php", "App=" & search) this code giving me java socket timeout on some devices i tried it on more than one device and more than one network the most of the problems happens with xperia ray , Samsung star dous plus one these 2 devices for 80% of the time i get that error the problem ony happens with http post not with http download and sometimes i get connection reset by server this is a rare issue on most of the devices any ideas or an alternative http post method ? or alternatives to httputlis2 ?
fixit30 Active Member Licensed User Longtime User Jun 14, 2015 #2 You could try the new OkHttp Library. http://b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/ Upvote 0
You could try the new OkHttp Library. http://b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/
T Tom Law Active Member Licensed User Longtime User Jun 14, 2015 #3 What are you using this for? Is it to connect to mysql via php. Upvote 0