[FASTCGI] Return application octet-stream data

Charles Thomas charles_thomas at mac.com
Tue Sep 18 16:49:09 EDT 2012


i guess it would help if I read the entire mail message :)... so it was the missing Content-Length?


Sent from my iPad

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

> Glad that helped.
> I recall trying to get fastcgi working and being very frustrated.
> 
> 
> On Tue, Sep 18, 2012 at 3:26 PM, Noah Silverman <noah at smartmediacorp.com> wrote:
> Jay,
> 
> That did it!!!
> 
> Thank you so much!
> 
> 
> --
> Noah
> 
> 
> On Sep 18, 2012, at 12:26 PM, Jay Sprenkle <jsprenkle at gmail.com> wrote:
> 
>> 
>> Try something like this:
>> 
>> bid_response.SerializeToString(&post_response)
>> cout << "Status: 200 OK\r\n";
>> cout << "Content-type: application/octet-stream\r\n";
>> cout << "Content-Length:  add-your-response-length here\r\n\r\n"
>> cout.write( post_response, add-your-response-length here );
>> cout << "\n";
>> 
> 
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.fastcgi.com/pipermail/fastcgi-developers/attachments/20120918/f178b88e/attachment.html>


More information about the FastCGI-developers mailing list