Can we make https server using programming languages? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 60

Can we make https server using programming languages?

19th Aug 2021, 6:03 AM
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ - avatar
15 Answers
+ 13
Yes bro you can write your own http server by proggraming language like python, ruby,Java script etc.
19th Aug 2021, 6:09 AM
Adarsh Rajput
Adarsh Rajput - avatar
19th Aug 2021, 6:09 AM
born2code
born2code - avatar
+ 11
💜Queen💜 like as sl profile's links
19th Aug 2021, 6:07 AM
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ
🌍🌎🌏ᴀɪᴍ🌎🌏🌍ᴵⁿᵃᶜᵗⁱᵛᵉ - avatar
+ 10
if new to Programming; Please google search on Node JS. Very easy to install on all OS's and creating https is as easy as pie (Hello World! ), but as others say many different languages can achieve same purpose here just one example with node js. Python Flask is another great one to learn. const http = require('http'); const requestListener = function (req, res) { res.writeHead(200); res.end('Hello, World!'); } const server = http.createServer(requestListener); server.listen(8080); "Happy learning is coding fantastic"
19th Aug 2021, 8:28 PM
Wes
+ 8
Yes I made this in PYTHON https://code.sololearn.com/cA01A3A9A188/?ref=app This is just an example. You should use C/C++ for this purpose
20th Aug 2021, 9:46 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 7
as said by ChillPill sir.. if you want to write your serverside in c/c++ you could also use cgi / fast-cgi .. that way you wont even need any single library ... just <isotream> and <fstream> is more than enough for most of tasks ...( i have done it once >_< and its lot fun.. i made something like expressJs with bare metal c++ .. its really a fun task ) but you will need apache server for that .. leme know if you want to know more about fast-cgi but if your goal is to make something like apache server itself then socket programming is way to go ...
21st Aug 2021, 4:51 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 5
Yes, Of Course! I Have Done it in Node JS & Python!
21st Aug 2021, 3:33 AM
Sancho Godinho
Sancho Godinho - avatar
+ 4
Why not? Yes, you can😊😊
19th Aug 2021, 1:08 PM
Mobaswir Hassan
Mobaswir Hassan - avatar
+ 3
Yeah, you can do that with pretty much any language. Java, JavaScript or Python whichever you prefer.
19th Aug 2021, 3:27 PM
Shahil Ahmed
Shahil Ahmed - avatar
+ 3
Sure
24th Aug 2021, 6:21 PM
CGO!
CGO! - avatar
+ 2
yep
27th Aug 2021, 4:25 PM
Lardaneo
Lardaneo - avatar
+ 2
Yeah, bro
29th Sep 2021, 12:55 PM
CGO!
CGO! - avatar
- 4
If you made server from http module unit by scratch Can make if you know in detail kernel works, network driver, syscall and tcp/ip, osimodel, ssl/tls etc... else, if you want to make low layer http server, u use C language the same as httpd and nginx. and also if don't care about extensibilty, then using the module prepared in advance, so can make by python ruby .net etc. simply.
20th Aug 2021, 3:39 PM
Isabella
Isabella - avatar
- 7
First time I tried coding loved it
19th Aug 2021, 5:38 PM
Binod