[FASTCGI] Return application octet-stream data

Noah Silverman noah at smartmediacorp.com
Tue Sep 18 17:57:43 EDT 2012


Jay,

Other way around.

Thanks to your help, my fastcgi program now *returns* the binary data perfectly.

My new challenge is that it doesn't always properly read the input of binary data.  

What would be a good way to setup the correct file handle to read in the binary post data?

--
Noah 

On Sep 18, 2012, at 2:49 PM, Jay Sprenkle <jsprenkle at gmail.com> wrote:

> I don't know of any but I really haven't looked for them.
> I believe the various web servers have differences in how they parse the responses.
> It took forever for me to dig out some of the information about what Apache expects to receive back from a cgi program.
> 
> cgicc does html and forms handling:
> http://www.gnu.org/s/cgicc
> 
> On Tue, Sep 18, 2012 at 4:24 PM, Charles Thomas <charles_thomas at mac.com> wrote:
> Yeah... it's a real love-hate relationship for me.  I love fixing the problems that I Hate getting.
> 
> The weirdest one I have had with FastCGI was cross-domain transfer from a javascript to fastcgi.  With that one there were some weird requirements concerning what headers I could and could not have in the request/response. 
> 
> Speaking of headers and fastCGI, are there any classes that encapsulate the header logic into them?  I know about the fastcgi library, and one for Qt  (FastCgiQt), but I was wondering if there are any more higher level classes out there?
> 
> Tom
> 
> Sent from my iPad
> 
> On Sep 18, 2012, at 3:54 PM, Jay Sprenkle <jsprenkle at gmail.com> wrote:
> 
>> My guess is that was the issue.
>> The other (terminating the string at the first zero byte) might have caused similar problems as well.
>> Computers are so fussy ;)
>> 
>> 
>> On Tue, Sep 18, 2012 at 3:49 PM, Charles Thomas <charles_thomas at mac.com> wrote:
>> i guess it would help if I read the entire mail message :)... so it was the missing Content-Length?
>> 
>> 
> 
> 
> 
> -- 
> ---
> "Why do you have that banana in your ear?" 
> "To keep away the alligators."
> "But there are no alligators here."
> "See! It's working!"
> --
> The Democrats are the left wing.
> The Republicans are the right wing.
> We all know how well a bird flies with just one wing.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.fastcgi.com/pipermail/fastcgi-developers/attachments/20120918/df63d97b/attachment.html>


More information about the FastCGI-developers mailing list