1. Problems with cgi

I tried to write a little cgi in Euphoria..
but it doesn't work right
i use OmniHttpd server (in win2k) and when i call the cgi.ex the result 
is generated in a dos shell and not in the browser...
how can i send the output to the browser?
the cgi is very very simple:

   puts(1,"Content-type: text/HTML\n\n") 
   puts(1,"<title>CGI-TEST.EX</title>")
   puts(1,"<body>")
   puts(1,"<H3>")
   puts(1,"Euphoria CGI Example:</H3>")

Thanks

new topic     » topic index » view message » categorize

2. Re: Problems with cgi

I know, for one, that you should use apache instead of omnihttpd;  I use to
use it, but after a while realized that it had a lot of bugs.

However, I think I know what you're doing.. you can't call it directly;  try
setting it up as your main page, and goto it from http://localhost/


~Nathan
----- Original Message -----
From: <dirac1973 at hotmail.com>
Subject: Problems with cgi


>
>
> I tried to write a little cgi in Euphoria..
> but it doesn't work right
> i use OmniHttpd server (in win2k) and when i call the cgi.ex the result
> is generated in a dos shell and not in the browser...
> how can i send the output to the browser?
> the cgi is very very simple:
>
>    puts(1,"Content-type: text/HTML\n\n")
>    puts(1,"<title>CGI-TEST.EX</title>")
>    puts(1,"<body>")
>    puts(1,"<H3>")
>    puts(1,"Euphoria CGI Example:</H3>")
>
> Thanks
>
>
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Problems with cgi

--------------Boundary-00=_OQMIQL80000000000000


--------------Boundary-00=_OQMILVC0000000000000
  charset="iso-8859-1"

you're forgetting puts(1,"<HTML>")

-------Original Message-------


From: dirac1973 at hotmail.com
Subject: Problems with cgi



I tried to write a little cgi in Euphoria..
but it doesn't work right
i use OmniHttpd server (in win2k) and when i call the cgi.ex the result=20
is generated in a dos shell and not in the browser...
how can i send the output to the browser?
the cgi is very very simple:

   puts(1,"Content-type: text/HTML\n\n")=20
   puts(1,"<title>CGI-TEST.EX</title>")
   puts(1,"<body>")
   puts(1,"<H3>")
   puts(1,"Euphoria CGI Example:</H3>")

Thanks



=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--------------Boundary-00=_OQMILVC0000000000000
Content-Type: Multipart/related;
boundary="------------Boundary-00=_OQMIG6G0000000000000"


--------------Boundary-00=_OQMIG6G0000000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta name=3D"GENERATOR" content=3D"IncrediMail 1.0">
</head>

<BODY background=3D"" bgColor=3D#ffffff style=3D"BACKGROUND-POSITION: 0px=
 0px; FONT-FAMILY: Arial" scroll=3Dyes ORGYPOS=3D"0">
<TABLE border=3D0 cellPadding=3D2 cellSpacing=3D0 id=3DINCREDIMAINTABLE w=
idth=3D"100%">
<TBODY>
<TR>
<TD id=3DINCREDIHEADER width=3D"100%"></TD>
</TR>
<TR>
<TD id=3DINCREDITEXTREGION width=3D"100%">
      <DIV>you're forgetting puts(1,"&lt;HTML&gt;")</DIV>
      <DIV>&nbsp;</DIV>
      <DIV><I>-------Original Message-------</I></DIV>
      <DIV>&nbsp;</DIV>
      <DIV>&nbsp;</DIV>
      <DIV dir=3Dltr id=3Dfromshowfield><U><I>From:</I></U><B>=20
      dirac1973 at hotmail.com</B></DIV>
      <DIV dir=3Dltr id=3Dtoshowfield><U><I>To:</I></U><B> EUforum=20
      <EUFORUM at TOPICA.COM></B></DIV>
      <DIV dir=3Dltr id=3Dsubjectshowfield><U><I>Subject:</I></U><B> Prob=
lems with=20
      cgi</B></DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
=20
      FREE Tupperware with any order of $50 or more placed<BR>through 5/9=
/01!=20
      For more details about this exceptional<BR>offer, click=20
      can i send the output to the browser?<BR>the cgi is very very=20
      simple:<BR><BR>&nbsp;&nbsp; puts(1,"Content-type: text/HTML\n\n")=20
      <BR>&nbsp;&nbsp;=20
      puts(1,"&lt;title&gt;CGI-TEST.EX&lt;/title&gt;")<BR>&nbsp;&nbsp;=20
      puts(1,"&lt;body&gt;")<BR>&nbsp;&nbsp;=20
      puts(1,"&lt;H3&gt;")<BR>&nbsp;&nbsp; puts(1,"Euphoria CGI=20
      Example:&lt;/H3&gt;")<BR>&nbsp;&nbsp;=20
      puts(1,"&lt;/body&gt;&lt;/html&gt;\n")=20
      <BR><BR>Thanks<BR><BR><BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
nd an=20
      email To: EUforum-unsubscribe at topica.com<BR>This email was sent to:=
=20
f=20
      Less.<BR>Newsletters, Tips and Discussions on Topics You=20
</TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
=09<TABLE cellPadding=3D0 cellSpacing=3D0 width=3D"100%">
=09<TBODY>
=09<TR>
=09<TD width=3D"100%"></TD>
=09<TD align=3Dmiddle id=3DINCREDISOUND vAlign=3Dbottom></TD>
=09<TD align=3Dmiddle id=3DINCREDIANIM vAlign=3Dbottom></TD>
=09</TR>
=09</TBODY>
=09</TABLE>
</TD>
</TR>
</TBODY>
</TABLE><SPAN=20
id=3DIncrediStamp><FONT face=3D"Arial, Helvetica, sans-serif"=20
--------------Boundary-00=_OQMIG6G0000000000000--

--------------Boundary-00=_OQMILVC0000000000000--

--------------Boundary-00=_OQMIQL80000000000000--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu