Tag: http

How create HTTP-Server using python Socket – Part II

How create HTTP-Server using python Socket – Part II

Hi guys, today i am going to show you hove add some extra features to our simple HTTP-Sever created using python socket module. So if you have no idea what is it please refer my previous blog post.

Previous post I describe you how send string as response. Here i will explain how send file. Yeh ! .html , .css , .jpg , .png and .js files can send. Again i want to say if you have no idea about this please first read this post.

First we should identify which file is client request. Then we can check whether its available in our container or not. If file exist we can send it and if not we should send error message saying file not exist.

Continue reading “How create HTTP-Server using python Socket – Part II”

Advertisements
How create HTTP-Server using python Socket – Part I

How create HTTP-Server using python Socket – Part I

Hi guys today I am going to give very brief introduction about how create web server using python socket. There are several ways to do that. But here i will explain how cover basic functionalities of server using python socket.

The SimpleHTTPServer module has been merged into http.server in Python 3.

  • First identify what is a server ?

A server is a computer program that provides services to other computer programs (and their users) in the same or other computers. ( The computer that a server program runs in is also frequently referred to as a server. )

If you want to know more about that use this links.  : What is server , How server works

Now I think you have understood about how server do its job and why we need server. Then start developments.First,

  • What is socket ?

Continue reading “How create HTTP-Server using python Socket – Part I”

What is HTTP and HTTPS ?

What is HTTP and HTTPS ?

HTTP හෝ HTTPS යන වචන ඇසුනු විගසින් අපට හැගෙනුයේ මේ අතර සැලකිය යුතු වෙනස්කමක් නොමති බවයි.නමුත් මෙහි ඉතා වැදගත් වෙනස් කමක් පවති. එය අන්තර්ජාලය තුල සැරි සරන අප අනිවාර්යෙන් දැනගතුයුතු කාරනාවක් ලෙස සැලකිය හැකිය.

කවුරුත් දන්නා පරිදි HTTP හි තේරැම වන්නෙ Hyper Text Transfer Protocol යන්නයි.එනම් world wide web (WWW) හි දත්ත හුවමාරු කිරීම සදහා භාවිතා කරන මූලික ක්‍රමවේදයයි.

HTTPS යනු Hyper Text Transfer Protocol Secure යන්නයි.එනම් HTTP හි ආරක්ෂිත  ක්‍රමවේදය යි.

HTTPS = HTTP + Security

Continue reading “What is HTTP and HTTPS ?”