Android Question HttpUtils2 Error: recvfrom failed: ECONNRESET (Connection reset by peer)


Licensed User
Hi all,
I'm trying to consume a web service using HttpUtils2

My code is
Job.PostString(PostUrl,"nome=prova&datachiamata=25/09/2013 17:45&durata=17:00&numero=3396859511&tipochiamata=1&idchiamata="& chk.Tag &"".Replace(" ","%20"))
                    Job.GetRequest.Timeout = 60000
I use this to store calls details to a remote database.

When JobDone routine is fired it gives me back an error of
Error: recvfrom failed: ECONNRESET (Connection reset by peer)

As I test my c# webservice from browser it correctly responds with

Any suggestion please?

Kind regards



Licensed User
1. Make sure that the request is correct.
2. Try to add a user-agent header.

Hi Erel,
I've made a test, making my webservice return nothing and my Job says that it is successfull, as my log says
JobName = Job, Success = false

When I try to get a return string from web service I see that it is correctly reached from my phone, as I see data stored in my database, but when it givev back return string it gives me error shown in first post.
Upvote 0