This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes HttpUrlConnection class problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpUrlConnection class problem" Watch "HttpUrlConnection class problem" New topic
Author

HttpUrlConnection class problem

mandar kharat
Greenhorn

Joined: Feb 08, 2002
Posts: 4
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
Be sure to flush() the output stream because your output goes to a buffer. Don't close() it until you get the response.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpUrlConnection class problem
 
Similar Threads
httpurlconnection usage
Implementing a message broadcast server using servlets
how to share data between servlet in different webapplication
HTTP Client/Server Problem
communication problem between applet and servlet in one direction