Skip to content

ShyamKumar-AI-DS/simplewebserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing a Simple Webserver

AIM:

To develop a simple webserver to serve html pages.

DESIGN STEPS:

Step 1:

HTML content creation

Step 2:

Design of webserver workflow

Step 3:

Implementation using Python code

Step 4:

Serving the HTML pages.

Step 5:

Testing the webserver

PROGRAM:

from http.server import HTTPServer,BaseHTTPRequesthandler content = """

TOP FIVE PROGRAMMING LANGUAGES
1.JavaScript
JavaScript is one of the significant dialects instructed in each bootcamp.It's an absolute necessity to know language in case you being a software engineer. It is utilized basically for making impacts which are intuitive in the programs. It is one of the center existing advances of the web with HTML and CSS. It is likewise utilized as front end in many cases just as in number of web systems.
Pros
* Optimises server loads
* Eye catching interfaces
* Versatility
* Speedy
* Easy learning

Cons
* Client security
* Slow operations
* Interprets different in different browsers
2.PHP
PHP is appropriate for web advancement and it can likewise be installed into HTML. It is an open source prearranging language. It likewise has different systemss with the utilization of which it ends up being more proficient. It diminishes the errands of composing long and composite codes.
Pros
* Runs on various platforms
* Open source
* Simple, Fluent & Organised
* Can connect with the database easily

Cons
* Error handling
3.C++
It is the most seasoned programming language. It is the base for any programming dialects.This is a high level rendition of C language. It is utilized in wide scope of stages for making applications which is execution driven. They are likewise utilized for business items and gaming programming. This language is utilized to get familiar with the rudiments of programming. It is a moderate degree of programming language as if has the essential level just as the high level soaked up in it.
Pros
* Similar to C# and Java
* Compatible
* Small standard library
* Compiled language
* Speedy

Cons
* Complicated
* No flexibility in syntax
* Less memory management
4.Java
Java is the most widely used recognized programming language and its especially sought after.It is a broadly useful programming and can be utilized in any stages. It is the most well known programming language. It is utilized for Big information and for web and programming advancement.
Pros
* Flexibility
* Object oriented
* Simple syntax
* Less security risks
* Independent
Cons
* Poor performance
* Unattractive look and feel
* Memory management
5.Swift
Apple in 2014 created Swift for Linux and Mac applications. It is an open source programming lamguage which is not difficult to learn. It upholds nearly everything from programming language Objective-C. Contrasted with other programming dialects,quick takes less coding.
Pros * Easy to read
* Easy to add new lineaments
* No long guidelines
* Prevents memory leakage

cons
* Volatile due to continuous updation
* Limited

OUTPUT:

###client side output:

github Logo

github Logo

github Logo

RESULT:

A WebServer Has Been Created Successfully!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors