Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Http server using winsock
#1
A working http server made in freebasic, using winsock. It has a primitive php implementation (only GET vars are passed on), as well as a likely primitive qb implementation (using qb-interpreter to create html content, but passes GET vars via command$, so they all go uppercase).

Download link: http://qh2.qbtk.com/392-d ~700kb, since the php dll is included.

To test it, just run the htt-rix.exe file, and go to "localhost" in your browser. Be sure that you're not running any other webservers at the same time.

It has a not so fancy quirk though. If you view one of the pages containing a phpinfo() output, something very weird happens, and the server can't serve anymore. Just to make it more weird, this doesnt happen if you first play around abit with the qbasic created page (submit some text via the text box). I've been trying all day to figure out what makes this happen, without any luck. It seems as if the variables are totally screwed up, and it even stops printing in the middle of it all (ie, doing PRINT "(" + var$ + ")", only print the first "(" then nothing more).

Also all this doesnt happen with smaller php scripts.

I'd really appreciate if anyone could give me a hint on what's going wrong here.
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Reply


Messages In This Thread
Http server using winsock - by Zap - 03-25-2005, 10:30 PM
Http server using winsock - by v3cz0r - 03-26-2005, 01:22 AM
Http server using winsock - by marzecTM - 03-26-2005, 02:54 AM
Http server using winsock - by Zap - 03-26-2005, 03:30 AM
Http server using winsock - by jatos - 03-26-2005, 01:52 PM
Http server using winsock - by Zap - 03-26-2005, 02:11 PM
Http server using winsock - by TheBigBasicQ - 03-26-2005, 02:15 PM
Http server using winsock - by jatos - 03-26-2005, 03:02 PM
Http server using winsock - by ShadowWolf - 03-26-2005, 04:27 PM
Http server using winsock - by jatos - 03-26-2005, 05:04 PM
Http server using winsock - by Zap - 03-26-2005, 06:09 PM
Http server using winsock - by Zap - 03-27-2005, 03:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)