[Xitami-Dev] POST'ing binary data to LRWP process does not work (bug in xilrwp.c?)

Rafael Cano Pérez xitami-dev@lists.xitami.org
Thu, 13 Jun 2002 21:31:22 +0200


 Fabien,

 I am building a system that receives binary data
 in an LRWP connected process. No problem, use
 http_multipart_mem().

 Regards.



   Rafael Cano Pérez



-----Mensaje original-----
De: xitami-dev-admin@lists.xitami.org
[mailto:xitami-dev-admin@lists.xitami.org]En nombre de Fabien Royer
Enviado el: jueves, 13 de junio de 2002 20:12
Para: xitami-dev@lists.xitami.org
Asunto: Re: [Xitami-Dev] POST'ing binary data to LRWP process does not
work (bug in xilrwp.c?)


George,

Let me be more specific.

While you are right about a LRWP process being capable of *sending* binary
data without any problem (I have tested that on JPEG files too), you are not
correct about a LRWP being capable of *receiving* binary data POST'ed to it.

For instance, try to POST a JPEG image to your LRWP process rather than
having it uploaded over FTP. You will not get what you expect.

The obvious workaround would be to UUENCODE the binary data, but I want to
avoid this at all cost. There's no reason why a LRWP could not handle binary
data.

Regards,
Fabien.


>From: George Blat <georgeb@ntrealtime.com>
>Reply-To: xitami-dev@lists.xitami.org
>To: xitami-dev@lists.xitami.org
>Subject: Re: [Xitami-Dev] POST'ing binary data to LRWP process does not
>work (bug in xilrwp.c?)
>Date: Thu, 13 Jun 2002 09:58:58 -0700
>
>I use modules that process uploaded .jpg files sent to the server
>  and did not have any problem. I have verified that LRWP can handle binary
>streams.
>
>George
>
>
>At 12:42 PM 6/13/2002 -0400, you wrote:
>
>>Hi all,
>>
>>I have a client app written to POST compressed and encrypted data to a
>>LRWP process. The problem is that the LRWP process only receives a few
>>bytes instead of the whole data stream. Basically, it appears that the WSX
>>module xilrwp.c punts on the first NUL it encounters in the stream.
>>POST'ing text data works like a charm though...
>>
>>Looking at the source code, it would appear that this issue has been
>>resolved already (as indicated by the comments at the top of xilrwp.c).
>>But the problem still exists as of the latest 2.5 codebase...Or am I
>>missing something?
>>
>>Has anyone written a fix for this issue (I'd like to know before I do it).
>>
>>Regards,
>>Fabien.
>>
>>/*
>>----------------------------------------------------------------<Prolog>-
>>    Name:       xilrwp.c
>>    Title:      Xitami WSX agent for long-running web process (LRWP)
>>protocol
>>    Package:    Xitami
>>
>>    Written:    1997/10/29    Robin P. Dunn  Total Control Software
>>    Revised:    1999/09/02    Xitami Team: Updated for LRWP 2.0, fixes
>>from
>>                                Bruce Dodson <bruce_dodson@bigfoot.com>
>>                1999/11/11    Xitami Team: Bug fixes for cleanup code to
>>prevent
>>                                         DoS issues.
>>                1999/12/30    Xitami Team: Fixed issues with NULs in data
>>sent
>>                 2001/05/15    Xitami Team: Fixed issue with sending
>>binary data
>>
>>    Copyright:  Copyright (c) 1991-2000 iMatix Corporation
>>    License:    This is free software; you can redistribute it and/or
>>modify
>>                it under the terms of the SMT License Agreement as
>>provided
>>                in the file LICENSE.TXT.  This software is distributed in
>>                the hope that it will be useful, but without any warranty.
>>------------------------------------------------------------------</Prolog
>-*/
>>
>>_________________________________________________________________
>>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>>
>>
>>--
>>Xitami-Dev -- Xitami Development Mailing List
>>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami-dev
>
>
>--
>Xitami-Dev -- Xitami Development Mailing List
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami-dev




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
Xitami-Dev -- Xitami Development Mailing List
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami-dev