HTTPWhat is HTTP?History of HTTPWorld Wide Web Consortium (W3C)W3C GoalsHow HTTP WorksRequest MessageRequest LineRequest MethodsSlide 10Slide 11Status CodesBreak Down a URLURL ExampleWrap-UpQUESTIONS????HTTPHTTPBy:By:Becky Fultz, Joe Flager, Katie Becky Fultz, Joe Flager, Katie Huston, Tom Packard, Huston, Tom Packard, Allison WilseyAllison WilseyWhat is HTTP?What is HTTP?HyperText Transfer ProtocolInvented by Tim Berners-Lee in 1989Defines how messages are formatted and transmittedAlso, what actions web servers and browsers should take in response to different commandsHistory of HTTPHistory of HTTPTim Berners-Lee created the first server and hypertext browser/editor know as the “World Wide Web” in 1990In 1991 the “web” was made available on the internet by providing his previous creations of HTML, HTTP, and UDI (URL)This uniform code made it easy for everyone to be connected and “speaking” the same languageWorld Wide Web Consortium World Wide Web Consortium (W3C)(W3C)International Consortium created in 1994 by a group of individuals among whom included Tim Berners-LeeMission Statement: “To lead the World Wide Web to its potential by developing protocols and guidelines that ensure long-term growth for the web”Purpose is to create web standards and guidelines called the W3C recommendationsSince 1994 they have published more than 90 recommendationsW3C GoalsW3C Goals1. Web for Everyone2. Web on Everything3. Knowledge Base4. Trust and ConfidenceHow HTTP WorksHow HTTP WorksHTTP client sends a request using a transmission control protocol (TCP) connection to a port on a remote hostAn HTTP server connected to that port waits to receive the client’s message before it actsThe server sends back a status line The status line could be the requested file, an error message, or some other info–An example is HTTP/1.0 404 Not Found–Other users will see this errorThe HTTP server then closes the connection, known as Stateless ProtocolRequest MessageRequest MessageThe request message is sent from the client to the serverThe format for this message is as follows:–Request Line–Header–Empty Line–Optional Message BodyThe request line and headers must all end with CRLF (which stands for Carriage Return and Line Feed)Request LineRequest LineThe request line has 3 parts:–Method–Local path of the resource–HTTP VersionRequest MethodsRequest MethodsThere are 8 methods that indicate how the task is to be carried outGET: Request a representation of the specified resourceHEAD: Asks for the response identical to the one that would correspond to a GET request, but without the response body.Request MethodsRequest MethodsPOST: Submits user data to the identified resourcePUT: Uploads a representation of the specified resourceDELETE: Deletes the specified resourceOPTIONS: Returns the HTTP methods that the server supports.Request MethodsRequest MethodsCONNECT: For use with a proxy that can change to being an SSL tunnelTRACE: Echoes back the received request, so that a client can see what intermediate servers are adding or changing in the requestSafe methods are designed only for information retrieval. The methods are GET and HEADUnsafe methods are designed to make a user aware of possible side effects of their actions. These methods should be displayed in a special way such as a button.Status CodesStatus CodesStatus codes are informational groupings that are given by the server to the client as a status reportStatus codes are always three digits, and the first digits indicates what happened:1xx – informational message only2xx – indicated a success3xx – redirects the client to another URL4xx – indicates an error on the client’s part5xx – indicates an error on the server’s partSome common status codes are:202 means that everything went ok and the file is in the message body301 means that the file has been moved permanently 302 means that the file has been moved temporarily404 means that the file does not exist505 means an unexpected server errorBreak Down a URLBreak Down a URLURL - Uniform Resource Locator (This is a subset of URI, which is a uniform resource identifier)Unique address–File–Image–WebsiteContains:–Program used to access the resource–Specific computer that the file is stored in–File name of the resource including the path of how to get to itURL ExampleURL Examplehttp://en.wikipedia.org:80/wiki/Special:search?search=train&go=GoWrap-UpWrap-UpInvented in 1989 by Tim Berners-LeeHelped connect everyone by using the same languageVery complex and rigid
View Full Document