ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Coded By : Ahmad Imair

Al-Quds University (Jerusalem ¨C Palestine)
Tasks of the OpenWebServer:
? Response for client requested page.
? Response for client requested command.
Request (in Client Side)
? As a client need to know the IP address and port

number of the OpenWebServer.
? Send request to OpenWebServer asking for a specific
page using web browser.
? Or send request to OpenWebServer asking to execute a
specific command using the keyword (open: )
Response (in OpenWebServer Side)
? On OpenWebServer side the OpenWebServer listening to a
?
?

?
?

?
?
?

specific port for all incoming request from client side.
Once the OpenWebServer receive a request -> Examining the
type of incoming request.
If request type was page -> search for the requested page on
the OpenWebServer data base (WebServer_DB).
If a requested page found fetch the HTML source code and send
it to the client as a response message. Other ways send built in
(page not found) HTML source cod.
If request type was command -> check the syntax of the
requested command.
If correct -> execute the command with an acknowledgement.
If correct but command not found -> Display command not
found.
Other ways -> send syntax error page.(Dynamic Page)
Call_Server() Method

Request_Type(string reg, int length) Method
Call_Page(string reg, int len,
NetworkStream strem) Method
? Search on the OpenWebServer data base for requested

page.

? IF found
? If page not found -> build (not found) page on

OpenWebServer side. Then send it to client as response
message.
Call_Command(string reg, int len,
NetworkStream strem) Method
? Check the Command syntax:
? IF syntax correct and command found-> Execute command (and send built in
page as acknowledge for execution)

? Dynamic Page
? If syntax correct but command not found -> send

command not found (Dynamic page according to
command input)
? If syntax Wrong -> Send syntax error with Help.
Open webserver
THANK YOU!!

More Related Content

Viewers also liked (8)

8th grade-the-simple-future-tense-one-day
8th grade-the-simple-future-tense-one-day8th grade-the-simple-future-tense-one-day
8th grade-the-simple-future-tense-one-day
Hanns Aguiar
?
??? ?????? ????? ?????????? \\ Warehouse management system
??? ?????? ????? ?????????? \\ Warehouse management system??? ?????? ????? ?????????? \\ Warehouse management system
??? ?????? ????? ?????????? \\ Warehouse management system
Ahmed Imair
?
?Ng tr??ng quang m?n
?Ng tr??ng quang m?n?Ng tr??ng quang m?n
?Ng tr??ng quang m?n
dungntv2006
?
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ßÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
lionlion10
?
Best URL I love
Best URL I loveBest URL I love
Best URL I love
bognboth101
?
Taxi thanh nga
Taxi thanh ngaTaxi thanh nga
Taxi thanh nga
dungntv2006
?
6th grade-verb-to-be6th grade-verb-to-be
6th grade-verb-to-be
Hanns Aguiar
?
7 ano present_ing
7 ano present_ing7 ano present_ing
7 ano present_ing
Hanns Aguiar
?
8th grade-the-simple-future-tense-one-day
8th grade-the-simple-future-tense-one-day8th grade-the-simple-future-tense-one-day
8th grade-the-simple-future-tense-one-day
Hanns Aguiar
?
??? ?????? ????? ?????????? \\ Warehouse management system
??? ?????? ????? ?????????? \\ Warehouse management system??? ?????? ????? ?????????? \\ Warehouse management system
??? ?????? ????? ?????????? \\ Warehouse management system
Ahmed Imair
?
?Ng tr??ng quang m?n
?Ng tr??ng quang m?n?Ng tr??ng quang m?n
?Ng tr??ng quang m?n
dungntv2006
?
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ßÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
ÍêÈ«ÕÆÎÕ2¼¶ÈÕ±¾ÓïÄÜÁ¦¿¼ÊÔÓï·¨¶Ô²ß
lionlion10
?
6th grade-verb-to-be6th grade-verb-to-be
6th grade-verb-to-be
Hanns Aguiar
?

Similar to Open webserver (20)

Espositoajaxremote 1210732828647866-8
Espositoajaxremote 1210732828647866-8Espositoajaxremote 1210732828647866-8
Espositoajaxremote 1210732828647866-8
Sopheak Sem
?
Web api 2 With MVC 5 With TrainerKrunal
Web api 2 With MVC 5 With TrainerKrunalWeb api 2 With MVC 5 With TrainerKrunal
Web api 2 With MVC 5 With TrainerKrunal
Krunal Trivedi
?
Introduction ASP
Introduction ASPIntroduction ASP
Introduction ASP
FaTin GhaZmi
?
Message in a Bottle
Message in a BottleMessage in a Bottle
Message in a Bottle
Zohar Arad
?
Ajax.ppt
Ajax.pptAjax.ppt
Ajax.ppt
MAGNA COLLEGE OF ENGINEERING
?
Web forms and server side scripting
Web forms and server side scriptingWeb forms and server side scripting
Web forms and server side scripting
sawsan slii
?
Ajax
AjaxAjax
Ajax
anandha ganesh
?
Unify service and ui layer automation bdd way.pptx (1)
Unify service and ui layer automation bdd way.pptx (1)Unify service and ui layer automation bdd way.pptx (1)
Unify service and ui layer automation bdd way.pptx (1)
Shivaling Sannalli
?
jQuery Ajax
jQuery AjaxjQuery Ajax
jQuery Ajax
Anand Kumar Rajana
?
Winning the Application Server Arms Race
Winning the Application Server Arms RaceWinning the Application Server Arms Race
Winning the Application Server Arms Race
ESUG
?
Presentation on java servlets
Presentation on java servletsPresentation on java servlets
Presentation on java servlets
Aamir Sohail
?
REST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side DevelopmentREST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side Development
Hyunghun Cho
?
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1
Mohammed Hussein
?
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
Alamelu
?
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
alamelumani
?
Introduction about-ajax-framework
Introduction about-ajax-frameworkIntroduction about-ajax-framework
Introduction about-ajax-framework
Sakthi Bro
?
Ajax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and jsonAjax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and json
ArchanaMani2
?
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11
Terry Yoast
?
Web Database
Web DatabaseWeb Database
Web Database
idroos7
?
Mashup
MashupMashup
Mashup
Naveen P.N
?
Espositoajaxremote 1210732828647866-8
Espositoajaxremote 1210732828647866-8Espositoajaxremote 1210732828647866-8
Espositoajaxremote 1210732828647866-8
Sopheak Sem
?
Web api 2 With MVC 5 With TrainerKrunal
Web api 2 With MVC 5 With TrainerKrunalWeb api 2 With MVC 5 With TrainerKrunal
Web api 2 With MVC 5 With TrainerKrunal
Krunal Trivedi
?
Message in a Bottle
Message in a BottleMessage in a Bottle
Message in a Bottle
Zohar Arad
?
Web forms and server side scripting
Web forms and server side scriptingWeb forms and server side scripting
Web forms and server side scripting
sawsan slii
?
Unify service and ui layer automation bdd way.pptx (1)
Unify service and ui layer automation bdd way.pptx (1)Unify service and ui layer automation bdd way.pptx (1)
Unify service and ui layer automation bdd way.pptx (1)
Shivaling Sannalli
?
Winning the Application Server Arms Race
Winning the Application Server Arms RaceWinning the Application Server Arms Race
Winning the Application Server Arms Race
ESUG
?
Presentation on java servlets
Presentation on java servletsPresentation on java servlets
Presentation on java servlets
Aamir Sohail
?
REST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side DevelopmentREST to JavaScript for Better Client-side Development
REST to JavaScript for Better Client-side Development
Hyunghun Cho
?
Internet programming lecture 1
Internet programming lecture 1Internet programming lecture 1
Internet programming lecture 1
Mohammed Hussein
?
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
Alamelu
?
Languages and tools for web programming
Languages and tools for web  programmingLanguages and tools for web  programming
Languages and tools for web programming
alamelumani
?
Introduction about-ajax-framework
Introduction about-ajax-frameworkIntroduction about-ajax-framework
Introduction about-ajax-framework
Sakthi Bro
?
Ajax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and jsonAjax enabled rich internet applications with xml and json
Ajax enabled rich internet applications with xml and json
ArchanaMani2
?
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11
Terry Yoast
?
Web Database
Web DatabaseWeb Database
Web Database
idroos7
?

Recently uploaded (20)

Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
World Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a CrossroadsWorld Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a Crossroads
Joshua Randall
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
Gojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptxGojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptx
V3cube
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar PatturajInside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
ScyllaDB
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarterQ4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
MariaBarbaraPaglinaw
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
World Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a CrossroadsWorld Information Architecture Day 2025 - UX at a Crossroads
World Information Architecture Day 2025 - UX at a Crossroads
Joshua Randall
?
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
?
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & TipsTrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc Webinar - Building your DPIA/PIA Program: Best Practices & Tips
TrustArc
?
Gojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptxGojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptx
V3cube
?
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar PatturajInside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
Inside Freshworks' Migration from Cassandra to ScyllaDB by Premkumar Patturaj
ScyllaDB
?
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
?
Q4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor PresentationQ4 2024 Earnings and Investor Presentation
Q4 2024 Earnings and Investor Presentation
Dropbox
?
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
?
The Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nesThe Future of Repair: Transparent and Incremental by Botond De?nes
The Future of Repair: Transparent and Incremental by Botond De?nes
ScyllaDB
?
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarterQ4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
MariaBarbaraPaglinaw
?

Open webserver

  • 1. Coded By : Ahmad Imair Al-Quds University (Jerusalem ¨C Palestine)
  • 2. Tasks of the OpenWebServer: ? Response for client requested page. ? Response for client requested command.
  • 3. Request (in Client Side) ? As a client need to know the IP address and port number of the OpenWebServer. ? Send request to OpenWebServer asking for a specific page using web browser. ? Or send request to OpenWebServer asking to execute a specific command using the keyword (open: )
  • 4. Response (in OpenWebServer Side) ? On OpenWebServer side the OpenWebServer listening to a ? ? ? ? ? ? ? specific port for all incoming request from client side. Once the OpenWebServer receive a request -> Examining the type of incoming request. If request type was page -> search for the requested page on the OpenWebServer data base (WebServer_DB). If a requested page found fetch the HTML source code and send it to the client as a response message. Other ways send built in (page not found) HTML source cod. If request type was command -> check the syntax of the requested command. If correct -> execute the command with an acknowledgement. If correct but command not found -> Display command not found. Other ways -> send syntax error page.(Dynamic Page)
  • 6. Call_Page(string reg, int len, NetworkStream strem) Method ? Search on the OpenWebServer data base for requested page. ? IF found
  • 7. ? If page not found -> build (not found) page on OpenWebServer side. Then send it to client as response message.
  • 8. Call_Command(string reg, int len, NetworkStream strem) Method ? Check the Command syntax:
  • 9. ? IF syntax correct and command found-> Execute command (and send built in page as acknowledge for execution) ? Dynamic Page
  • 10. ? If syntax correct but command not found -> send command not found (Dynamic page according to command input)
  • 11. ? If syntax Wrong -> Send syntax error with Help.