Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2. http, html

340 views

Published on

Introduction of JSP (Java Server Pages) Lecture # 2
Something About HTTP, HTML with respect to the JSP

Published in: Education, Technology
  • Be the first to comment

2. http, html

  1. 1. IMRAN DAUDFOUNDATION UNIVERSITYRAWALPINDI CAMPUSImran DaudFURCWeb EngineeringHTTP, HTML
  2. 2. HTTP HTTP functions as a request-response protocol inthe client-server computing modelClient Application at ServerHttp RequestHTML file/ returns required function result
  3. 3. Request Methods Head (Head = GET but without response body) GET Requests a representation of the specified resource. Requests using GET should only retrieve data and should have no other effect. Data appears in url. POST Submits data to be processed (e.g., from an HTML form) to the identifiedresource. The data is included in the body of the request. This may result in the creation of a new resource or the updates of existingresources or both. Data appears in message body. Used when updating or storing data. DELETE Deletes specified resource
  4. 4. HTTP session HTTP session is a sequence of network request-response transactions HTTP client initiates a request by establishing aTransmission Control Protocol (TCP) connection to aparticular port on a server (typically port 80) HTTP server listening on that port waits for a clientsrequest message. Upon receiving the request, the server sends back astatus line, such as "HTTP/1.1 200 OK", and amessage of its own.
  5. 5. HTML<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>
  6. 6. <table border="1"><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table>Apples 44%Bananas 23%Oranges 13%Other 10%
  7. 7. References en.wikipedia.org

×