• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpUrlConnection class problem

 
mandar kharat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am using HttpUrlConnection class to communicate to a servlet. When I send data to the servlet with the OutputStream object there is no data received at the server end. But the data that is sent from the server to my class is received with not problems. What can be the problem.
Regards Mandar.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure to flush() the output stream because your output goes to a buffer. Don't close() it until you get the response.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic