DexOS http server test

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
GLneo
Member
Member
Posts: 237
Joined: Wed Dec 20, 2006 7:56 pm

Post by GLneo »

[joke]how do we know if it is really running on you OS ???[/joke] :shock: :D , typing anything after the address doesn't effect things. http://86.15.253.182/lalala/bla/foo.php
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

You got your timeouts a bit sharp and I can't seem to get anything from it using telnet. Aside from that, it won't feed anything to my HTTP 1.0 request.

Code: Select all

candy@blackbox:~$ telnet 86.15.253.182 80
Trying 86.15.253.182...
Connected to 86.15.253.182.
Escape character is '^]'.
GET Connection closed by foreign host.
candy@blackbox:~$ echo -e "GET / HTTP/1.0\n\n" | telnet 86.15.253.182 80
Trying 86.15.253.182...

candy@blackbox:~$ echo -e "GET / HTTP/1.0\n\n" | telnet 86.15.253.182 80
Trying 86.15.253.182...
Connected to 86.15.253.182.
Escape character is '^]'.
Connection closed by foreign host.
candy@blackbox:~$
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

GLneo wrote:[joke]how do we know if it is really running on you OS ???[/joke] :shock: :D , typing anything after the address doesn't effect things. http://86.15.253.182/lalala/bla/foo.php
Of course it doesn't, as yet it sends a default page to all requests... this has already been established.
GLneo
Member
Member
Posts: 237
Joined: Wed Dec 20, 2006 7:56 pm

Post by GLneo »

hmmm must not be paying much attention... has he released the source yet? still a cool server thing...
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Thanks for testing everyone.

@Candy, thanks for info the simple server is only code to test for "GET " and "POST" only, and also to not respond to anything else and to close once header and file send, no waiting. Not sure why GET does not respond through telnet.
Most likely it is cuts off the contion before the GET.
I will be add much more functionality, once i have fix any bugs in the stack code.

@GLneo, I will be releasing the source code once all bugs are out, But if anyone got a RTL8139 ethernet card and a old PC, I can post DexOS along with the ethernet driver + stack and http server, so you can run it on your own PC to test ;) .
Will work on a 486 up + 16MB ram.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

I will take a look at that code :) Is it ASM? :D (And how can DexOS connect to net, through a PCI internal modem, or COM external modem, or ADSL USB external modem?)

inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

100% ASM, I am making a MiniDos ver, when i try for the worlds smallest x86 bootable web server. As of now ethernet only :(, i will do a emulator ver, so you can test etc.
Side NOTE: It is possible to make app for DexOS in C etc, as there as been work to help C coder, you can use TCC, or VC++ 6 etc.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

The web server will be inside MiniDOS kernel? :shock: I gotta see this! 8)

inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

inflater wrote:The web server will be inside MiniDOS kernel? :shock: I gotta see this! 8)

inflater
The web server will run as a user program ;).
anon19287473
Member
Member
Posts: 97
Joined: Thu Mar 15, 2007 2:27 pm

Post by anon19287473 »

Brynet-Inc wrote:An HTTP server written in x86 ASM?

That has to be a first :lol:

(Well.. other embedded architecrues have written one in their native assembly language.. but it might be a rarity for x86 right?)

(Don't post the code.. We don't want it!! :?)

haha j/k :)
NOPE. Asm utils did it in a couple hundred bytes under Linux. But hosted on a system written in ASM, yes that is definitely a first.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Dex wrote:But if anyone got a RTL8139 ethernet card and a old PC, I can post DexOS along with the ethernet driver + stack and http server, so you can run it on your own PC to test ;) .
Will work on a 486 up + 16MB ram.
I got two D-Links that have RTL8139 in them. ID themselves as 1186:1300.

Old PC will be a bigger problem, but I guess either my Duron (768MB ram) or my AMD64 (1GB ram) will probably be willing to run a test. :)
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Cool, I am working on a release ver, that includes running your own webs site, from a old PC at home, with a full set of user functions include auto setup (dhcp), manual, site stats, log.
You will even beable to get stats etc, from any browser (password protected.
You will only need to boot, 2 clicks and that it other than put all web pages, images, etc into a folder on hdd.
There will first be a text menu based ver for running from old PC, and a gui ver for people who like GUIs.
It should be ready to test in about a week, so i will post a link than.
Thanks .
Post Reply