dcsimg
These programs are required urgently within 24 hours, if some one could do them will be really grateful
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vikram_Manikonda
Posted On:   Wednesday, April 25, 2001 10:19 AM

(A) Write a server program called GetPostServer that listens on some port. When a client arrives, the server should pass the socket connection to a handler for processing and continue to handle incoming requests. (B) The Handler should examine the header of HTTP request to see if the message is a GET or POST. If the message is GET, the Handler should attempt to locate the requested file and deliver the content of the file to the client or return an HTML 404 error message that indicates file not found. (C) If the message type is POST and the header contains a line of the form: content-type: text/html read the payload into an array using the content-length: header to determine how many bytes/characters are in the payl   More>>

(A) Write a server program called GetPostServer that listens on some port. When a client arrives, the server should pass the socket connection to a handler for processing and continue to handle incoming requests.

(B) The Handler should examine the header of HTTP request to see if the message is a GET or POST. If the message is GET, the Handler should attempt to locate the requested file and deliver the content of the file to the client or return an HTML 404 error message that indicates file not found.

(C) If the message type is POST and the header contains a line of the form:
content-type: text/html
read the payload into an array using the content-length: header to determine how many bytes/characters are in the payload (following the blank line).

(D) Decode the form data and send the form data back to the client as:
The form you submitted contains:
=
=
-- each form entry appearing on a different line in the browser (remember, browsers ignore carriage returns so one way to force a new line is to embed the HTML tag
to force a line break).



er your full question here

   <<Less

Re: These programs are required urgently within 24 hours, if some one could do them will be really grateful

Posted By:   Charles_Ball  
Posted On:   Wednesday, May 2, 2001 12:44 PM

You must be another one of those dumb IS students taking a CS class.

Have fun in the real world. :)

Re: These programs are required urgently within 24 hours, if some one could do them will be really grateful

Posted By:   Michael_Wax  
Posted On:   Wednesday, April 25, 2001 03:34 PM

Are you paying?
About | Sitemap | Contact