wood burning stoves 2.0*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 12675
Shouldn't you be looking at the response code returned? Perhaps the request is not getting through to the service you expected.


Java Resources at www.wbrogden.com
Ulf Dittmer

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

Ping & DNS - updated with new look and Ping home screen widget
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: http://aspose.com/file-tools
subject: Httppost Problem
Similar Threads
Post an XML filt to a Web Server
Client Android JSON--- Server side PhP .....error..!!
How to post data from android app to php page
Can't find the file I created
Input Data to MySQL Database