here\'s the assignment: Creae a web form for uploading pictures for a high schoo
ID: 3529139 • Letter: H
Question
here's the assignment: Creae a web form for uploading pictures for a high school reunion. the form should have text input fields for the name of the person anda description of the image. To accompany each image file, create a text file that contains the name and description of the image. Create a seperate web page that displays the picture with a caption showing the name and description fields. ensure that the Projects directory has read and write permissions for everyone.. The important part: the name and description are saved to a .txt document. the images and txt document are saves in the "image" folder.Explanation / Answer
Your implementation might provide an OS-specific sockets API, in which case your question boils down to, "how do I write an HTTP client?". To which the answer is (a) don't, or (b) read the HTTP specification very carefully and do as it tells you. The basic steps are:
The difficult part is parsing the response robustly, because there are a lot of features to worry about. If your client is tied to a particular server, then its responses will be quite predictable, and you can ignore quite a lot of the HTTP spec (at least until you change the configuration of the server, update its software, etc).
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.