File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Httppost Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Httppost Problem" Watch "Httppost Problem" New topic

Httppost Problem

prazannag Kumar

Joined: Feb 25, 2010
Posts: 12
I want to send data to PHP as well as receive. For that i tried HttpPost. At the end of execution I got the answer "false". Can anyone tell how to fix this issue. Please check the coding...

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12781
Shouldn't you be looking at the response code returned? Perhaps the request is not getting through to the service you expected.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41823
Please edit your post to UseCodeTags. It's unnecessarily hard to read the code as it is.

Ping & DNS - my free Android networking tools app
prazannag Kumar

Joined: Feb 25, 2010
Posts: 12
Now the code working fine, I simplified it. Thanks.
prazannag Kumar

Joined: Feb 25, 2010
Posts: 12
I am facing the new issue now. I can get respose from PHP, when I initialize the values to the parameters which i am going to pass. But the problem is, when I get the input dynamically, the code response nothing. I need to connect with PHP when I press a button, after getting the input from user. So i written a code under Onclick event. I got mess with this issue. Can anyone help me... ?
I agree. Here's the link:
subject: Httppost Problem