Re: Return application octet-stream data
Charles Thomas <[email protected]> Tue, 18 Sep 2012 15:49:09 -0500
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============5416253360010252252== Content-type: multipart/alternative; boundary="Boundary_(ID_AW/2btwrLRW+dH7WqlOGEQ)" --Boundary_(ID_AW/2btwrLRW+dH7WqlOGEQ) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT 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 <[email protected]> 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 <[email protected]> wrote: > Jay, > > That did it!!! > > Thank you so much! > > > -- > Noah > > > On Sep 18, 2012, at 12:26 PM, Jay Sprenkle <[email protected]> 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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers --Boundary_(ID_AW/2btwrLRW+dH7WqlOGEQ) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: 7BIT <html><head></head><body bgcolor="#FFFFFF"><div>i guess it would help if I read the entire mail message :)... so it was the missing Content-Length?</div><div><br><br>Sent from my iPad</div><div><br>On Sep 18, 2012, at 3:30 PM, Jay Sprenkle <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Glad that helped.<div>I recall trying to get fastcgi working and being very frustrated.</div><div><br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 3:26 PM, Noah Silverman <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Jay,</div><div><br></div><div>That did it!!!</div><div><br></div><div>Thank you so much!</div> <div><br></div><br><div> <div>--</div><div>Noah</div><br> </div><div><div class="h5"> <br><div><div>On Sep 18, 2012, at 12:26 PM, Jay Sprenkle <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:</div><br><blockquote type="cite"><div><br></div><div>Try something like this:</div> <div><br></div><div><span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">bid_response.</span><span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">SerializeToString(&post_</span><span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">response)</span><br style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif"> <span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">cout << "Status: 200 OK\r\n";</span><br style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif"> <span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">cout << "Content-type: application/octet-stream\r\n</span><span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">";</span></div> <div><span style="background-color:rgb(255,255,102)"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">cout << "</span><span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;line-height:18px">Content-Length: </span> add-your-response-length here\r\n\r\n<span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;line-height:18px">"</span></span></div> <div><span style="background-color:rgb(255,255,102)">cout.write( post_response, add-your-response-length here );<br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"></span><span style="color:rgb(80,0,80);font-size:13px;font-family:arial,sans-serif">cout << "\n";</span> </div><br></blockquote></div></div></div></div></blockquote></div><br> </div> </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FastCGI-developers mailing list</span><br><span><a href="mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org</a></span><br><span><a href="http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers</a></span><br></div></blockquote></body></html> --Boundary_(ID_AW/2btwrLRW+dH7WqlOGEQ)-- --===============5416253360010252252== 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 --===============5416253360010252252==--