2. http, html

237
-1

Published on

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

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
237
On Slideshare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×