Re: ===== SPAM: Problems with FastCGI's FCGX_SetExitStatus()

Andy Leap <[email protected]> Tue, 16 Jul 2013 09:32:46 -0400
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CAOknQRU8Aa7YKnf3+a+mc0iJw4Ab+3-=urzYRkL+aB377Ou_6w@mail.gmail.com>
--===============5192913829747357023==
Content-Type: multipart/alternative; boundary=001a1133b42a37d5b004e1a1030d

--001a1133b42a37d5b004e1a1030d
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

If you are just trying to change the http status of the response, look at
the FAQ for this, specifically,
http://www.fastcgi.com/docs/faq.html#httpstatus

(sorry if I emailed this wrong, I'm kinda new to mailing lists)

On Tue, Jul 16, 2013 at 5:28 AM, Frank Haferkorn <
[email protected]> wrote:

> Dear fastcgi-developers mailing list members,****
>
> ** **
>
> I have a problem to return an ExitStatus of my own choice...****
>
> I us ethe OpenMarket FastCGI ****
>
> ** **
>
> I use a hiawtha website ****
>
> Hiawatha version: 8.8
> Operating System: Windows 7 (cygwin)****
>
> I compiled the FastCGI library myself using cygwin.****
>
>
> I have problems to set the Exit Code of a FastCGI Script I am using insid=
e
> main!.****
>
> I don=92t get any changes of this ErrCode. It seems as not to be availabl=
e!*
> ***
>
>
> What is wrong in this code?****
>
> Did I miss any special settings in configuration before compilation?****
>
> ** **
>
>
> +++++++++++++++++++
> FCGX_Init();
> sock =3D FCGX_OpenSocket(socketName, 5);
> for (FCGX_InitRequest(&request, sock, 0); // Init FCGX Operation
> FCGX_Accept_r(&request) >=3D 0;
> FCGX_Finish_r(&request))
> {
>       res =3D handle_request(&request);
> *    FCGX_SetExitStatus(510, request.in);
> *
> }
> +++++++++++++++++++****
>
> I don=92t know where  to read the version of ths fastcgi library I used, =
b**
> **
>
> ** **
>
> But PERHAPS this might help...****
>
> In the manpage the Command FCGI_SetExitStatus has this tag:****
>
> ** **
>
> HISTORY****
>
>      Copyright (c) 1996 Open Market, Inc.****
>
>      See the file "LICENSE.TERMS" for information on usage and
> redistribution****
>
>      of this file, and for a DISCLAIMER OF ALL WARRANTIES.****
>
>      $Id: FCGI_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp
> $****
>
> ** **
>
>
> -------------------------------------------------------------------------=
----
> ****
>
> RST Industrie Automation GmbH * Carl-Zeiss-Str. 51, D-85521 Ottobrunn ***=
*
>
> Tel. +49-89-9616018-20 * Fax +49-89-9616018-10 *
> http://www.rst-automation.de****
>
> ** **
>
> Gesch=E4ftsf=FChrer: Dipl.-Ing.(FH) Robert Schachner ****
>
> Amtsgericht M=FCnchen: HRB 103 626 * ID-Nr. DE 811 466 035****
>
>
> -------------------------------------------------------------------------=
---
> ****
>
> ** **
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
>
>

--001a1133b42a37d5b004e1a1030d
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>If you are just trying to change the http status of t=
he response, look at the FAQ for this, specifically,=A0<a href=3D"http://ww=
w.fastcgi.com/docs/faq.html#httpstatus">http://www.fastcgi.com/docs/faq.htm=
l#httpstatus</a></div>
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">(sorry if I=
 emailed this wrong, I&#39;m kinda new to mailing lists)<br><br><div class=
=3D"gmail_quote">On Tue, Jul 16, 2013 at 5:28 AM, Frank Haferkorn <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_bl=
ank">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div lang=3D"DE" link=3D"blue" vlink=3D"purp=
le"><div><p class=3D"MsoNormal"><span lang=3D"EN-GB">Dear fastcgi-developer=
s mailing list members,<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB"><u></u>=A0<u></u></span></p><p =
class=3D"MsoNormal"><span lang=3D"EN-GB">I have a problem to return an Exit=
Status of my own choice...<u></u><u></u></span></p><p class=3D"MsoNormal"><=
span lang=3D"EN-GB">I us ethe OpenMarket FastCGI <u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB"><u></u>=A0<u></u></span></p><p =
class=3D"MsoNormal"><span lang=3D"EN-GB">I use a hiawtha website <u></u><u>=
</u></span></p><p class=3D"MsoNormal"><span lang=3D"EN-GB">Hiawatha version=
: 8.8<br>Operating System: Windows 7 (cygwin)<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">I compiled the FastCGI library =
myself using cygwin.<u></u><u></u></span></p><p class=3D"MsoNormal"><span l=
ang=3D"EN-GB"><br>I have problems to set the Exit Code of a FastCGI Script =
I am using inside main!.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">I don=92t get any changes of th=
is ErrCode. It seems as not to be available!<u></u><u></u></span></p><p cla=
ss=3D"MsoNormal"><span lang=3D"EN-GB"><br>What is wrong in this code?<u></u=
><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">Did I miss any special settings=
 in configuration before compilation?<u></u><u></u></span></p><p class=3D"M=
soNormal"><span lang=3D"EN-GB"><u></u>=A0<u></u></span></p><p class=3D"MsoN=
ormal"><span lang=3D"EN-GB"><br>
+++++++++++++++++++<br>FCGX_Init();<br>sock =3D FCGX_OpenSocket(socketName,=
 5);<br>for (FCGX_InitRequest(&amp;request, sock, 0); // Init FCGX Operatio=
n<br>FCGX_Accept_r(&amp;request) &gt;=3D 0;<br>FCGX_Finish_r(&amp;request))=
<br>
{<br>=A0=A0=A0=A0=A0 res =3D handle_request(&amp;request); <br><b><i><u>=A0=
=A0=A0=A0FCGX_SetExitStatus(510, <a href=3D"http://request.in" target=3D"_b=
lank">request.in</a>);<br></u></i></b><br>}<br>+++++++++++++++++++<u></u><u=
></u></span></p><p class=3D"MsoNormal">
<span lang=3D"EN-GB">I don=92t know where =A0to read the version of ths fas=
tcgi library I used, b<u></u><u></u></span></p><p class=3D"MsoNormal"><span=
 lang=3D"EN-GB"><u></u>=A0<u></u></span></p><p class=3D"MsoNormal"><span la=
ng=3D"EN-GB">But PERHAPS this might help...<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">In the manpage the Command FCGI=
_SetExitStatus has this tag:<u></u><u></u></span></p><p class=3D"MsoNormal"=
><span lang=3D"EN-GB"><u></u>=A0<u></u></span></p><p class=3D"MsoNormal"><s=
pan lang=3D"EN-GB">HISTORY<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">=A0=A0=A0=A0 Copyright (c) 1996=
 Open Market, Inc.<u></u><u></u></span></p><p class=3D"MsoNormal"><span lan=
g=3D"EN-GB">=A0=A0=A0=A0 See the file &quot;LICENSE.TERMS&quot; for informa=
tion on usage and redistribution<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB">=A0=A0=A0=A0 of this file, and =
for a DISCLAIMER OF ALL WARRANTIES.<u></u><u></u></span></p><p class=3D"Mso=
Normal"><span lang=3D"EN-GB">=A0=A0=A0=A0 </span>$Id: FCGI_SetExitStatus.3,=
v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp $<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=A0<u></u></p><p class=3D"MsoNormal"><span la=
ng=3D"EN-GB" style=3D"font-size:10.5pt;font-family:Consolas">--------------=
---------------------------------------------------------------<u></u><u></=
u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:10.5pt;font-=
family:Consolas">RST Industrie Automation GmbH * Carl-Zeiss-Str. 51, D-8552=
1 Ottobrunn <u></u><u></u></span></p><p class=3D"MsoNormal"><span lang=3D"E=
N-GB" style=3D"font-size:10.5pt;font-family:Consolas">Tel. <a href=3D"tel:%=
2B49-89-9616018-20" value=3D"+4989961601820" target=3D"_blank">+49-89-96160=
18-20</a> * Fax <a href=3D"tel:%2B49-89-9616018-10" value=3D"+4989961601810=
" target=3D"_blank">+49-89-9616018-10</a> * </span><span style=3D"font-size=
:10.5pt;font-family:Consolas"><a href=3D"http://www.rst-automation.de" targ=
et=3D"_blank"><span lang=3D"EN-GB">http://www.rst-automation.de</span></a><=
/span><span lang=3D"EN-GB" style=3D"font-size:10.5pt;font-family:Consolas">=
<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-GB" style=3D"font-size:10.5pt;font-=
family:Consolas"><u></u>=A0<u></u></span></p><p class=3D"MsoNormal"><span l=
ang=3D"EN-GB" style=3D"font-size:10.5pt;font-family:Consolas">Gesch=E4ftsf=
=FChrer: Dipl.-Ing.(FH) Robert Schachner <u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-family:Consolas=
">Amtsgericht M=FCnchen: HRB 103 626 * ID-Nr. DE 811 466 035<u></u><u></u><=
/span></p><p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-famil=
y:Consolas">---------------------------------------------------------------=
-------------<u></u><u></u></span></p>
<p class=3D"MsoNormal"><u></u>=A0<u></u></p></div></div><br>_______________=
________________________________<br>
FastCGI-developers mailing list<br>
<a href=3D"mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developer=
[email protected]</a><br>
<a href=3D"http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers" =
target=3D"_blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-devel=
opers</a><br>
<br></blockquote></div><br></div></div>

--001a1133b42a37d5b004e1a1030d--

--===============5192913829747357023==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

--===============5192913829747357023==--