aspose file tools*
The moose likes Servlets and the fly likes Java Reading Post Parameters 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 » Java » Servlets
Bookmark "Java Reading Post Parameters" Watch "Java Reading Post Parameters" New topic
Author

Java Reading Post Parameters

Shane Zilinskas
Greenhorn

Joined: Jun 10, 2009
Posts: 4
Hello,

I am trying to create a java application that will run on a users computer and will read information send across their network from a PDA running windows mobile. I need to be able to read out a string of 9-13 characters.

However when I try to read out the POST data I only get something similar to this:
running...
Server has connected!
POST / HTTP/1.1
Content-Length: 14
Connection: Keep-Alive
Expect: 100-continue
Host: 192.168.1.100:1234

I am fairly certain the fault lies in my Java code because the C# code came from msofts website.

I have a java server and a client on the pda is c#.

My java code is as follows:


Thank you in advance!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

As you posted this in the Servlets forum, why aren't you using a servlet rather than do it all "by hand"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Reading Post Parameters
 
Similar Threads
ServerSocket.accept(); problem
socket programin in java
Socket Client returning Connection refused
Problem in Networking concept
How to Change the File Name for Each Uploaded Files to the Socket Server?