Server Internet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Massimiliano_Ragazzi
Posted On:   Monday, December 29, 2003 09:01 AM

I've developed an Internet server using ServerSocket with this code ServerSocket s = new ServerSocket(8189); Socket incoming = s.accept(); BufferedReader in = new BufferedReader(new InputStreamReader(incoming.getInputStream())); PrintWriter out = new PrintWriter(incoming.getOutputStream(),true); String line = in.readLine(); My client is a browser page that call the server to the port 8189. The problem is that if i call the server in get method i can get the parameters but if the calling is in POST method i can't How can i do ? Many thanks for your efforts    More>>

I've developed an Internet server using ServerSocket


with this code


ServerSocket s = new ServerSocket(8189);


Socket incoming = s.accept();


BufferedReader in = new BufferedReader(new InputStreamReader(incoming.getInputStream()));


PrintWriter out = new PrintWriter(incoming.getOutputStream(),true);




String line = in.readLine();



My client is a browser page that call the server to the port 8189.


The problem is that if i call the server in get method i can get the parameters


but if the calling is in POST method i can't


How can i do ?



Many thanks for your efforts


Massimiliano

   <<Less

Re: Server Internet

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, December 30, 2003 05:51 AM

Presumably you have to parse the content of your "in" reader, right? because POST parameters are in there.

About | Sitemap | Contact