Hi Kumar,

I still got the problem mentioned above...

I don't see how I could check the response status line:
httpclient.execute(httppost) throws an IOException, so it doesn't
return any response...

Here are some logcat (between the start of HttpPost till the exception
is raised):

02-20 16:50:56.525: DEBUG/NetworkLocationProvider(70):
onDataConnectionStateChanged 8
02-20 16:50:56.525: DEBUG/MobileDataStateTracker(70): default Received
state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
default,supl
02-20 16:50:56.535: DEBUG/MobileDataStateTracker(70): replacing old
mInterfaceName (rmnet0) with rmnet0 for supl
02-20 16:50:58.265: DEBUG/dalvikvm(3777): GC freed 5464 objects /
485296 bytes in 63ms
02-20 16:51:01.545: DEBUG/dalvikvm(3777): GC freed 10416 objects /
702824 bytes in 70ms
02-20 16:51:05.285: DEBUG/dalvikvm(145): GC freed 1257 objects / 93144
bytes in 137ms
02-20 16:51:07.015: DEBUG/dalvikvm(3777): GC freed 468 objects /
490384 bytes in 81ms

Thanks,

Pierre


On 4 jan, 05:25, Kumar Bibek <coomar....@gmail.com> wrote:
> Post some logcat log so that it will be clearer.
>
> Check the reponse status line. That will provide more information.
>
> Thanks and Regards,
> Kumar Bibek
>
> http://tech-droid.blogspot.com
>
> On Jan 3, 10:52 pm, p1erstef <pierre.stef...@gmail.com> wrote:
>
> > Hi all,
>
> > I'm trying to use HttpPost to send data from an android device to a
> > server.
> > It works great with a Wifi connection, but I get the IOException "The
> > target server failed to respond" with a Mobile connection (3G, Edge,
> > etc.). It doesn't seem to be a timeout problem (I set it to 90s).
> > The use of HttpGet works perfectly with both Wifi and Mobile
> > connection...
> > Any idea of where the problem could come from?
>
> > Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to