• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Reading Post Parameters

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you posted this in the Servlets forum, why aren't you using a servlet rather than do it all "by hand"?
reply
    Bookmark Topic Watch Topic
  • New Topic