Jump to page: 1 2
Thread overview
Script and batch command.
Nov 21, 2002
zhang li
Nov 21, 2002
Walter
Nov 22, 2002
zhang li
Nov 22, 2002
Walter
Nov 23, 2002
zhang li
Nov 24, 2002
Walter
Nov 24, 2002
zhang li
Nov 24, 2002
Walter
Nov 24, 2002
zhang li
Nov 30, 2002
Walter
Nov 23, 2002
zhang li
November 21, 2002
Did anyone made HTTP server script or DOS batch by DMDscript?

HTTP server script accept any *.EXE / *.DLL to manager.

li


November 21, 2002
I don't understand the question. -Walter

"zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com...
> Did anyone made HTTP server script or DOS batch by DMDscript?
>
> HTTP server script accept any *.EXE / *.DLL to manager.
>
> li
>
>


November 22, 2002
*.ASP, *.PL, *.JSP, *.PHP,.... is server script. they control stdin/stdout as HTTP input/output.

for example, a simply "index.pl" script print a Html page to HTTP guest.
---------------
#!/usr/bin/perl -w


print "Content-type: text/html\n\n",<<HTML;

<html>
<head>
<title>Guest book</title>
</head>
<body>

<a href="..">Home</a>
</body>
</html>
HTML
---------------

index.pl request c:\perl\bin\perl.exe for windows.
or #!/usr/bin/perl -w for Linux/FreeBSD

Also use *.EXE, *.DLL, to manager HTTP server. http://www.omnicron.ca/httpd/docs/index.html


li

"Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arjqre$1o3b$1@digitaldaemon.com...
> I don't understand the question. -Walter
>
> "zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com...
> > Did anyone made HTTP server script or DOS batch by DMDscript?
> >
> > HTTP server script accept any *.EXE / *.DLL to manager.
> >
> > li
> >
> >
>
>


November 22, 2002
I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for your application.

-Walter

"zhang li" <li@stands.3322.org> wrote in message news:ark7m1$262v$1@digitaldaemon.com...
> *.ASP, *.PL, *.JSP, *.PHP,.... is server script. they control stdin/stdout as HTTP input/output.
>
> for example, a simply "index.pl" script print a Html page to HTTP guest.
> ---------------
> #!/usr/bin/perl -w
>
>
> print "Content-type: text/html\n\n",<<HTML;
>
> <html>
> <head>
> <title>Guest book</title>
> </head>
> <body>
>
> <a href="..">Home</a>
> </body>
> </html>
> HTML
> ---------------
>
> index.pl request c:\perl\bin\perl.exe for windows.
> or #!/usr/bin/perl -w for Linux/FreeBSD
>
> Also use *.EXE, *.DLL, to manager HTTP server. http://www.omnicron.ca/httpd/docs/index.html
>
>
> li
>
> "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arjqre$1o3b$1@digitaldaemon.com...
> > I don't understand the question. -Walter
> >
> > "zhang li" <li@stands.3322.org> wrote in message news:arimem$ejh$1@digitaldaemon.com...
> > > Did anyone made HTTP server script or DOS batch by DMDscript?
> > >
> > > HTTP server script accept any *.EXE / *.DLL to manager.
> > >
> > > li
> > >
> > >
> >
> >
>
>


November 23, 2002
It has a little problem, the DSDscript print copyright info first, the info also send to guest.

yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n",

so, the copyright info should print to stderr, will not be use as HTTP output.


regard

li


"Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com...
> I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for your application.
>
> -Walter
>


November 23, 2002
maybe the Dscript can not work better than  a *.exe program. ..............

Final. it not adapt to a server manager.

li


November 24, 2002
So, dmdscript will work for you if the startup message is sent to stderr rather than stdout, no other changes? -Walter

"zhang li" <li@stands.3322.org> wrote in message news:armvgp$23la$1@digitaldaemon.com...
> It has a little problem, the DSDscript print copyright info first, the
info
> also send to guest.
>
> yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n",
>
> so, the copyright info should print to stderr, will not be use as HTTP output.
>
>
> regard
>
> li
>
>
> "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com...
> > I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for
your
> > application.
> >
> > -Walter
> >
>
>


November 24, 2002
No fully adapt to HTTP manager.

Made a basis HTTP manager.
if it no make pointer error, will work at
http://127.0.0.1/cgi-bin/
directory.

For the post method of send a form, it need check environment
"HTTP_CONTENT_LENGTH=??"
to read data bytes from stdin.(add a string to numeric function)

try it, you will know the mean. :)

li

"Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arps4e$2d99$1@digitaldaemon.com...
> So, dmdscript will work for you if the startup message is sent to stderr rather than stdout, no other changes? -Walter
>
> "zhang li" <li@stands.3322.org> wrote in message news:armvgp$23la$1@digitaldaemon.com...
> > It has a little problem, the DSDscript print copyright info first, the
> info
> > also send to guest.
> >
> > yet Internet Explorer need the first info from server. print "Content-type: text/html\n\n",
> >
> > so, the copyright info should print to stderr, will not be use as HTTP output.
> >
> >
> > regard
> >
> > li
> >
> >
> > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ :arlntd$pf6$2@digitaldaemon.com...
> > > I just don't understand what you're asking. In any case, the dmdscript engine can read from stdin and write to stdout, if that will work for
> your
> > > application.
> > >
> > > -Walter
> > >
> >
> >
>
>




November 24, 2002
So, it needs to be able to do a getenv()?
  "zhang li" <li@stands.3322.org> wrote in message news:arpu83$2f8u$1@digitaldaemon.com...
  No fully adapt to HTTP manager.

  Made a basis HTTP manager.
  if it no make pointer error, will work at
  http://127.0.0.1/cgi-bin/
  directory.

  For the post method of send a form, it need check environment
  "HTTP_CONTENT_LENGTH=??"
  to read data bytes from stdin.(add a string to numeric function)

  try it, you will know the mean. :)

  li

  "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ
  :arps4e$2d99$1@digitaldaemon.com...
  > So, dmdscript will work for you if the startup message is sent to stderr
  > rather than stdout, no other changes? -Walter
  >
  > "zhang li" <li@stands.3322.org> wrote in message
  > news:armvgp$23la$1@digitaldaemon.com...
  > > It has a little problem, the DSDscript print copyright info first, the
  > info
  > > also send to guest.
  > >
  > > yet Internet Explorer need the first info from server.
  > > print "Content-type: text/html\n\n",
  > >
  > > so, the copyright info should print to stderr, will not be use as HTTP
  > > output.
  > >
  > >
  > > regard
  > >
  > > li
  > >
  > >
  > > "Walter" <walter@digitalmars.com> дÈëÏûÏ¢ÐÂÎÅ
  > > :arlntd$pf6$2@digitaldaemon.com...
  > > > I just don't understand what you're asking. In any case, the dmdscript
  > > > engine can read from stdin and write to stdout, if that will work for
  > your
  > > > application.
  > > >
  > > > -Walter
  > > >
  > >
  > >
  >
  >





November 24, 2002
"Walter" <walter@digitalmars.com> ??????:arq7k1$2pns$1@digitaldaemon.com... So, it needs to be able to do a getenv()?

|||||||||||
\*_*/
_\_/_

In a ideal HTTP manager programs, may want it does anything if passable. :)

Seem only C/C++ can does those things at computers. but a binary programs looky unsafe in webmaster eyes. that is why use script as manager. even script slowly but script are changeable. I don't know what is best. may none.

in fact, PERL are most Lunix/Freebsd based part.
Sun Unix make own *.JSP (Java Script Program?).
Microsoft make own *.ASP (Active Server Page).
the PHP very likely PERL style.
I only installed Perl, read some PHP script.
if you have more document about Hypertext Transfer Protocol.
Please tell me. Thanks.

Li


« First   ‹ Prev
1 2