===================================================================
RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/httpd-rpc.sm1,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- OpenXM/src/kan96xx/Doc/httpd-rpc.sm1 2002/11/03 12:43:03 1.10
+++ OpenXM/src/kan96xx/Doc/httpd-rpc.sm1 2002/11/04 05:40:40 1.11
@@ -1,4 +1,4 @@
-%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-rpc.sm1,v 1.9 2002/10/29 10:54:17 takayama Exp $
+%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-rpc.sm1,v 1.10 2002/11/03 12:43:03 takayama Exp $
%% http server by sm1. Used for RPC. Generic example.
[(parse) (httpd.sm1) pushfile] extension pop
@@ -21,6 +21,9 @@ def
/httpd.oxasir.timer 1 def %% 1 to use timer, but it accepts only one command
%% 0 not to use timer. It accepts programs.
+/httpd.title
+ (
OpenXM/Risa/Asir Online
)
+def
%%******* Put initialization codes for ox_asir here.
/httpd.initialization
[(if(1){)
@@ -211,6 +214,24 @@ oxNoX
arg1
} def
+ [
+ (Input example---factorization: fctr(x^3-1))
+ (
)
+ [(
+ AsirManual (En) , )] cat
+ [(
+ AsirManual (Ja) )] cat
+ httpd.oxasir.timer {
+ (
It accepts only one command. The limit of CPU time is 30 seconds.
+ Do not put ;
+ (semi-colon) after the command.
+ )
+ }{ } ifelse
+ (
)
+ [(You can also retrieve the result by GET /?) httpd.textarea.name (=) ( encoded_codes HTTP/1.0)]
+ (
)
+ ] cat /httpd.msg1 set
+
/send-page-usage {
[/in-send-page-usage ] pushVariables
[
@@ -219,7 +240,7 @@ oxNoX
(Content-Type: text/html) sendln
0 sendln
- (OpenXM/Risa/Asir Online
) sendln
+ httpd.title sendln
[(getenv) (OXWEB_POST)] extension tag 0 eq {
(
) sendln
- (Input example---factorization: fctr(x^3-1)) sendln
- (
) sendln
- [(
- AsirManual (En) , )] cat sendln
- [(
- AsirManual (Ja) )] cat sendln
- httpd.oxasir.timer {
- (
It accepts only one command. The limit of CPU time is 30 seconds.
- Do not put ;
- (semi-colon) after the command.
- ) sendln
- }{ } ifelse
- (
) sendln
- [(You can also retrieve the result by GET /?) httpd.textarea.name (=) ( encoded_codes HTTP/1.0)] cat
- sendln
- (
) sendln
+ httpd.msg1 sendln
+
[$ Shutdown the oxserver (and restart it). $
@@ -267,10 +274,13 @@ oxNoX
(HTTP/0.9 200 OK) sendln
(Connection: close) sendln
[(Content-length: ) result length toString ] cat sendln
- (Content-Type: text/plain) sendln
+ (Content-Type: text/html) sendln
+ %(Content-Type: text/plain) sendln % It does not work on some browsers.
0 sendln
+ ( ) sendln
result sendln
+ (
) sendln
0 sendln
[(flush)] extension
] pop