Introduction to Internet Programming Web Based Application Webbased
Introduction to Internet Programming (Web Based Application)
Web-based application • TCP/IP (HTTP) protocol • Using WWW technology & software • Distributed environment
World Wide Web • Allows users from anywhere on the internet to retrieve documents from any other computers • The main protocol is the HTTP – Hyper. Text Transfer Protocol • HTTP provides a standard form of communication between web browsers and web servers.
World Wide Web (cont. ) • Web browsers – Programs running on client computers – Request for documents using URL – eg. Chrome, Firefox, Safari • Web servers – Programs that provide documents to browsers – eg. Apache
World Wide Web (cont. ) • URL – Uniform Resource Locator – A reference of a document on the web. – eg. http: //www. utm. my/index. html – http: //www. utm. my/images/logo. jpg – 2 - Httpd – http daemon: • • • https: //en. wikipedia. org/wiki/Httpd Error response status: 404 Found: response status 200
Web Architechture How the Web works for static contents (basic architecture) CGI scripts
Advantages • Easy for deployment • Standard interface (HTML) for many platform (Windows, Linux/Unix, Mac)
Disadvantages • Compare to standalone apps – Security prob – malicious code etc. , sensitive data – CC
Example tech. /framework • Conventional CGI – Perl, C, C++, Python, VB • Java Servlet • Server pages – ASP, PHP, JSP • Client side script –Java. Script
Common Gateway Interface How the Web works for dynamic contents CGI Intepreter CGI scripts
HTML, CSS, & Javascript JSP/Servlet My. SQL
Example Web-Based Apps • E-Commerce – Amazon, Ebay, os. Commerce • Wiki – Wikipedia • Online Blog – Blogspot • CMS – Joomla, Wordpress • Social network – Facebook, twitter, insta • Video Streaming – Youtube, Quicktime movie trailer
- Slides: 12