[android-beginners] DefaultHttpClient problem sending Http request

2010-03-07 Thread wonglik
Hi Everybody

I have some problem and I am not sure if I understand it correctly and
I would appreciate your advice.

My target is to send http request after receiving notification.
Request contains HttpPost followed with 302 get redirect. Everything
works fine most of the time but sometimes the request is just not
sent. Sometimes its just the first post is not send and sometimes the
redirects. I see at server logs that they were not sent but
application itself do not crash , throw an exception nothing . Just
like freeze in the line of sending request. I have noticed it only on
GPRS connection so my guess would be it can be caused by client
timeout but on the other hand  I try catch IOException so I guess it
should cover this case.

Any ideas?


regards
m

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] DefaultHttpClient problem sending Http request

2010-03-07 Thread wahib haq
hey dear ,

i just get my hands on wid sending and receiving httprequest thing. it
works in my case but i am not sending more than one request at a time.
concerning your issue...i guess its GPRS problem and packet are lost
during transmission. IOException shud occur when there is error while
sending but if no error it wont give an exception. I am also a newbie
and wait for some experts to comment on ur issue. Best of Luck wid it
:)

Regards,
wahib

On 3/7/10, wonglik wag...@gmail.com wrote:
 Hi Everybody

 I have some problem and I am not sure if I understand it correctly and
 I would appreciate your advice.

 My target is to send http request after receiving notification.
 Request contains HttpPost followed with 302 get redirect. Everything
 works fine most of the time but sometimes the request is just not
 sent. Sometimes its just the first post is not send and sometimes the
 redirects. I see at server logs that they were not sent but
 application itself do not crash , throw an exception nothing . Just
 like freeze in the line of sending request. I have noticed it only on
 GPRS connection so my guess would be it can be caused by client
 timeout but on the other hand  I try catch IOException so I guess it
 should cover this case.

 Any ideas?


 regards
 m

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en



-- 
Wahib-ul-haq

3rd year Communications Engineering Student,
NUST, Pakistan.
Microsoft Student Partner
follow me on twitter @wahibhaq

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en