70 likes | 217 Views
ICS 415 Introduction to Programming for the Web. Carleton (Cam) Moore 27 Aug 2013. My Background. M.S. Information & Computer Sciences (1995) Ph.D. in Communications and Information Sciences (2000) 11 Years as a Senior Software Engineer and Manager with Lockheed Martin
E N D
ICS 415 Introduction to Programming for the Web Carleton (Cam) Moore 27 Aug 2013
My Background • M.S. Information & Computer Sciences (1995) • Ph.D. in Communications and Information Sciences (2000) • 11 Years as a Senior Software Engineer and Manager with Lockheed Martin • Returned to CSDL as a Post-Doc (2012)
Overview of the Course • Website: • http://ics415f13.wordpress.com/
What is Programming for the Web? • Hypertext Transfer Protocol (HTTP) • Request-Response protocol • Stateless • Client-Server model • Foundation of the World Wide Web Universal Resource Location (URL) Hypertext Markup Language (HTML) • Defining structure of World Wide Web
HTTP Request • <Method> <local path of resource> <HTTP version> • GET /path/to/file/index.html HTTP/1.0 • Request Methods • GET – requests representation of ‘resource’ • HEAD – same as GET without the response body • POST – requests the server accept the entity as a subordinate to the ‘resource’ • PUT – request server store the entity as the ‘resource’ • DELETE – delete the specified ‘resource’
HTTP Responses • Status Line: • <HTTP ver.> <Status code> <reason phrase> • HTTP/1.0 200 OK • HTTP/1.0 401 Unauthorized • Status Codes • 1xx Informational • 2xx Success • 3xx Redirection • 4xx Client Error • 5xx Server Error
Uniform Resource Locator • Web address: A String that identifies a resource • Protocol • :// • Host or IP address • :port number (Optional) • Full path to resource • ? Query (Optional) http://127.0.0.1:8000/account/login/