by Wilfred Verkley >> Sun, 5 Mar 2000 5:58:02 GMT
I was playing around with jadehttp.dll, and i found its actually quite easy to use it to directly write your own web applications (as opposed to using the jade web monitor to emulate your jade forms), though knowing a bit about HTTP & HTML helps.
Put jadehttp.dll under a "test" virtual web directory, run the jadescript below, and then try out this url : http://localhost/test/jadehttp.dll?WebTest. You need to run the jadescript each time before you request the page.
vars
pipe : NamedPipe;
b : Binary;begin
create pipe;
pipe.name := 'WebTest';
pipe.listen;
b := pipe.readBinary (0);
write b.String;
pipe.writeBinary ((
'Content-Type: text/html' & CrLf &
CrLf &
'<b>Hello, World</b><br>' & CrLf &
'<form method="post" action="jadehttp.dll?WebTest&urlParam=abc">Enter a value : <input name="formParam" type="text" value="def"><input type="submit" value="Submit"></form>' & CrLf
).Binary);
epilog
pipe.close;
delete pipe;
end;
As you can see when you run it, its jadehttp.dll's request parsing is fairly simple. It only gives the ip address, the url parameters, and any form variables (the same as the url parameters if no form is submitted).
No support for cookies, or any other information from the web server or the HTTP header. If you are serious about writing web applications this way, it would probably pay to build your own version of JadeHttp.dll.
Wilfred.