User Tools

Site Tools


tanszek:oktatas:iss_t:http_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tanszek:oktatas:iss_t:http_server [2026/03/09 09:57] kneheztanszek:oktatas:iss_t:http_server [2026/03/09 09:57] (current) knehez
Line 108: Line 108:
  out.println("Content-type: " + content);  out.println("Content-type: " + content);
  out.println("Content-length: " + fileLength);  out.println("Content-length: " + fileLength);
- out.println(); // blank line between headers and content, very important !+ out.println(); // blank line between headers and content, very important
  out.flush(); // flush character output stream buffer  out.flush(); // flush character output stream buffer
  
Line 172: Line 172:
  out.println("Content-type: " + content);  out.println("Content-type: " + content);
  out.println("Content-length: " + fileLength);  out.println("Content-length: " + fileLength);
- out.println(); // blank line between headers and content, very important !+ out.println(); // blank line between headers and content, very important
  out.flush(); // flush character output stream buffer  out.flush(); // flush character output stream buffer
  
Line 191: Line 191:
 out.println("Content-type: " + content); out.println("Content-type: " + content);
 out.println("Content-length: " + fileLength); out.println("Content-length: " + fileLength);
-out.println(); // blank line between headers and content, very important !+out.println(); // blank line between headers and content, very important
 out.flush(); // flush character output stream buffer out.flush(); // flush character output stream buffer
 </sxh> </sxh>
  
-**Task 3.**: modify the source code so that it can also return images. To do this, first add <img src="…> to index.html and copy an arbitrary image next to the html-s..+**Task 3.**: modify the source code so that it can also return images. To do this, first add <img src="…> to index.html and copy an arbitrary image next to the html-s.
  
tanszek/oktatas/iss_t/http_server.txt · Last modified: 2026/03/09 09:57 by knehez