The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: georgek01 on December 06, 2011, 05:38:40 AM

Title: Serving up web pages
Post by: georgek01 on December 06, 2011, 05:38:40 AM
Good day,

How would you go about serving up web pages using assembly? Would you need to write a web server in ASM that processes the requests and returns HTML?

Regards,
George
Title: Re: Serving up web pages
Post by: Tedd on December 06, 2011, 01:45:15 PM
Set up a socket to listen on port 80, process requests according to HTTP (http://tools.ietf.org/html/rfc2616), and return the data (HTML pages, images, stylesheets) as requested.

It depends how robust you want to make it - you could get away with only returning the default HTML page and failing all other requests. You should probably do that in the first instance anyway, and then build it up by adding features (there's a lot you 'can' implement.)


Short answer: yes :green2
Title: Re: Serving up web pages
Post by: zemtex on December 06, 2011, 02:11:05 PM
Let us make a browser together, all of us on the forum. An assembly browser. Closed source (Assembly shouldn't be open source, it gives assembly a bad name if you let a general c++ programmer ability to touch clean assembly code)

Let me divide tasks among us.

1. hutch (Responsible for management)
2. dedndave (Responsible for serving programmers coffee and cookies)
3. MichaelW (socket programming)
4. zemtex (User interface)
5. Brad (porn filter engine)
6. Farabi (Terrorist filter engine)
....
Title: Re: Serving up web pages
Post by: georgek01 on December 07, 2011, 11:44:35 AM
Thank you for the responses!  :U

I've been looking at ISAPI and found some really nice examples at http://www.japheth.de/.

I like the idea of extending MS-IIS functionality and I can do it using ASM.



Title: Re: Serving up web pages
Post by: georgek01 on December 11, 2011, 06:31:26 PM
Has anyone developed a DLL for use with IIS Express (ISAPI Extension)?

When I add the DLL I developed to the URL (http://localhost:5657/DLL.dll?), I get a HTTP Error 404.0 - Not Found. I know there is some changes I need to make to the applicationhost.config file which I'm working on.

For starters though, am I on the right track with the attached DLL code?