Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

.RSP - Rebol Server Pages

 [1/1] from: al::bri::xtra::co::nz at: 28-Oct-2000 23:22


For my Web Server (Codename: Spider), I'm thinking of using the extension .RSP for Rebol Server Pages for those files that contain HTML (or XML) code with multiple embedded chunks of Rebol code in them. An example %HelloWorld.rsp might be: <html> <head> <title>Hello World</title> </head> <body> <h1>Hello World</h1> <% Response/Write join ["Hello! Your browser is:" Request/User-Agent] %> <br> <% Response/Write now %> <br> <% Response/Write do %MyCommonStuff.r %> </body> </html> Comments, positive or negative, would be appreciated for the above. Is Response/Write better than, say, "print"? Also, for CGI applications, what would a outside Rebol script need to provide a CGI Rebol, with a HTML Post request, like: POST /MyTest HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/pdf, */* Referer: http://localhost:8080/Form.html Accept-Language: en-nz Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) Host: localhost:8080 Content-Length: 42 Connection: Keep-Alive name=Andrew&sex=M&income=Under+%2425%2C000 The last line is the results of a form. I'm thinking the cgi script _caller_ would need to do something like: do/args %MyRebolCgiScript.r name=Andrew&sex=M&income=Under+%2425%2C000 Would this be correct? Does anyone know? Thanks for your time. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/