News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Serving up web pages

Started by georgek01, December 06, 2011, 05:38:40 AM

Previous topic - Next topic

georgek01

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
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)

Tedd

Set up a socket to listen on port 80, process requests according to HTTP, 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
No snowflake in an avalanche feels responsible.

zemtex

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)
....
I have been puzzling with lego bricks all my life. I know how to do this. When Peter, at age 6 is competing with me, I find it extremely neccessary to show him that I can puzzle bricks better than him, because he is so damn talented that all that is called rational has gone haywire.

georgek01

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.



What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)

georgek01

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?
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)