https://github.com/gotz1480/websocket-server
A simple application which uses C library socket.h to demonstrate how to retrieve a HTTP GET request with response 200 and some HTML data.
https://github.com/gotz1480/websocket-server
c c-webclient c-webserver-program websocket websocket-endpoint websocket-example websocket-server
Last synced: about 2 months ago
JSON representation
A simple application which uses C library socket.h to demonstrate how to retrieve a HTTP GET request with response 200 and some HTML data.
- Host: GitHub
- URL: https://github.com/gotz1480/websocket-server
- Owner: gotz1480
- Created: 2021-10-10T02:31:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-11T04:54:18.000Z (over 3 years ago)
- Last Synced: 2025-04-04T13:13:21.467Z (about 2 months ago)
- Topics: c, c-webclient, c-webserver-program, websocket, websocket-endpoint, websocket-example, websocket-server
- Language: C
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C-websocket-endpoint
An application which uses the C library socket.h to create a server to handle a HTTP GET request with response 200 and HTML data. Must be compiled and run in Unix systems.From a terminal, compile using:
- gcc server.c -o server.oRun the application:
- ./server.oIn a web browser, type any of the following addresses:
- localhost:9002
- 127.0.0.1:9002Then, the browser should display the page "index.html". If another URL is specified, the server returns a default "Error 404" page.