GitHub - SuperIlu/httpDOS: Simple TLS capable HTTP server for MS-DOS

Simple TLS capable HTTP server for MS-DOS. Contribute to SuperIlu/httpDOS development by creating an account on GitHub.

GitHub
My other #MSDOS projects:
- #DOStodon: a #mastodon client for MS-DOS
- #DosView: DOS image viewer/converter for modern file formats
- #DOjS: #Javascript based #CreativeCoding IDE for MS-DOS

@dec_hl would this coexist with Win3.1 ? It'd be a great way to extract files if so e.g. by sharing the C drive...

#retro

@falken I don't really think so. The server runs in protected mode in CWSDPMI DOS extender...
@dec_hl ah. Was hoping it'd be better than having to FTP my Newton backups
@falken well, if you have a network card in the box anyways you can try EtherDFS?
@dec_hl Ideally it'd not require anything special on the modern machine. Running an FTP server on it is one thing. SMB is out becuase modern systems wont talk old style encryption. EtherDFS would work, but needs it's own special server.
Open to more ideas ;)

@falken well, I usually need to transfer from modern to retro and not the other way around 🤣
And I have Samba, EtherDFS and HTTP running on my local network for that...

How about setting up some kind of HTTP server and push via HTTP-PUT using the wget from FreeDOS? But that wouldn't be much better than FTP.

Try scoring an USB ZIP-Drive and a parallel one on eBay maybe? 😋

@dec_hl this is incredibly cool!  

Going to have a go at compiling it when I get on a computer.

@carbontwelve or try the binaries?
@dec_hl haha I didn’t see those. I’m actually interested in how you compiled for MSDOS. A few years back I began a game dev project for MSDOS and found it difficult to source a modern build chain that could cross compile for 16bit exes.

@carbontwelve well, I do mostly cross compile with DJGPP on WSL/Win10 for 32bit. There is a very nice script from jwt27 to build the toolchain:
https://github.com/jwt27/build-gcc

If I happen to do 16bit DOS I use the Windows version of OpenWatcom with the GUI IDE.

GitHub - jwt27/build-gcc: Shell scripts to build various gcc cross-compilers (primarily djgpp)

Shell scripts to build various gcc cross-compilers (primarily djgpp) - jwt27/build-gcc

GitHub

@dec_hl ah yes.

The compiler from OpenWatcom is what I ended up using, I'm unsure if there are modern alternatives but it enabled me to build my project and run it on my Toshiba T1200 powered by a 8086  

That decision was largely driven by the fact that my 286 machine doesn't boot and I have yet to find the time to dismantle it and find out why. But also I thought it cool being able to compile the same code for it to run on 16bit DOS and Windows 11 with a few compile flags.

@dec_hl w00t w00t that's really cool! Question, though: Why are you using the ancient watt-32, when there's mTCP? Not compatible with cwsdpmi?
@ltning Watt32 is out of the box compatible with DJGPP and I'm already using it in my other projects DOjS and jSH...
@dec_hl This is so wonderfully pointless and I absolutely love it
@redrummy have you seen my #Javascript based projects for DOS? That is peak pointless 🤣
@dec_hl OMG I just noticed your header image. Cyrix, of famed 387 coprocessor legend, who later released that dogshit 6x86 with ironically terrible FPU performance. RIP
@redrummy yeah, I have a socket 7 CPU collection 😊
That heat plate is one of them...
@dec_hl So how fast is negotiating a connection with modern ciphers on a 486 DX4 or equivalent?
@aviancer I haven't tried it (I have no 486 ready to run in my stash). but from the experience of other people running DOStodon as a TLS client on 486 I guess it will take some time.
I only tested the server on a FreeDOS VM in VirtualBox (was even to laze to fire up the Pentium 166)...
@dec_hl Yeah I can imagine it being pretty slow ^^ Might be fun to try at some point. It’s kind of amazing what all has been ported to DOS at this point and I’m appreciative of your efforts of expanding that ^^
@dec_hl Nice! I guess it’s time for me to start hosting a site on server running DOS (joining https://win311.aaron.cc and https://reactos.aaron.cc). Very cool that it is TLS-capable (which my Windows 3.11 isn’t at the moment).
This Page Was Served From Windows 3.11

A demo that a 30-year-old OS can still be used to serve web pages in 2022. This page explains how it was done and which challenges had to be solved.

@aaronk6 then I should update mbedTLS so to keep your VM safe 🤣
@dec_hl The VM is behind a TLS-enabled reverse proxy, so that’s all good. Would still be interesting to explore ways of adding native TLS support! 😄
@aaronk6 what do you mean? httpDOS has native TLS support?
@dec_hl Sorry, I meant for the Windows 3.11 web server. For httpDOS, are you using an older version of mbedTLS, or why did you write it needed to be updated to keep the VM safe? (Which I guess would probably the least of my problems anyway when connecting a DOS machine to the internet 😅)
@aaronk6 yeah, I was joking because I used 2.28.3 and 2.28.7(?) is current 🤣