This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Httppost Problem  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
--------------

 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't you be looking at the response code returned? Perhaps the request is not getting through to the service you expected.

Bill
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please edit your post to UseCodeTags. It's unnecessarily hard to read the code as it is.
 
prazannag Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now the code working fine, I simplified it. Thanks.
 
prazannag Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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... ?
----
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!