[FASTCGI] Return application octet-stream data

Jay Sprenkle jsprenkle at gmail.com
Tue Sep 18 16:30:48 EDT 2012


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";
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.fastcgi.com/pipermail/fastcgi-developers/attachments/20120918/0df9a0c4/attachment.html>


More information about the FastCGI-developers mailing list