tag:blogger.com,1999:blog-15319370.post112686329099439246..comments2024-03-05T11:16:00.846+01:00Comments on Roland Bouman's blog: Redirecting Oracle Mod PLSQL Gateway Pages directly to filesrpboumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-15319370.post-62598817275005247782007-10-17T19:41:00.000+02:002007-10-17T19:41:00.000+02:00Hi !I added a small portion of code at the top of ...Hi !<BR/><BR/>I added a small portion of code at the top of the function to remove the header lines.<BR/><BR/>Here's what I did:<BR/><BR/>--clear headers<BR/>if (INSTR(v_line, 'ORACLE-IGNORE') > 0) then<BR/>v_header := true; --process header lines<BR/>end if;<BR/>if (v_header) then<BR/>v_header_lines := v_header_lines - 1;<BR/>if (v_header_lines <= 0) then<BR/>v_header := false;<BR/>end if;<BR/>end if;<BR/>--end headers<BR/>if (v_header = false) then go on with line treatment<BR/><BR/>It's a bit ugly but it works for now !<BR/><BR/>Thanks !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-82470365106424679412007-10-16T21:05:00.000+02:002007-10-16T21:05:00.000+02:00Hi Guillaume!glad it's useful to you. I actually k...Hi Guillaume!<BR/><BR/>glad it's useful to you. I actually kind of forgot I wrote this entry.<BR/><BR/>Anyway, let me get this clear. You are using something like this but you are seeing X-ORACLE-IGNORE being written to your file? How odd, I don't see that. <BR/><BR/>It looks like a custom header to me, maybe they incorporated that in a later version of the gateway. <BR/><BR/>My guess is you're going to have to parse that out yourself. I don't think it is too hard - look for a completely blank CR/LF sequence - anything beyond that is your response body which you want to dump to file.<BR/><BR/>Let me know if that was helpful ;)<BR/><BR/>Roland.rpboumanhttps://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-28461576307808419132007-10-16T17:51:00.000+02:002007-10-16T17:51:00.000+02:00Great job !Exactly what I needed !Is there a way t...Great job !<BR/>Exactly what I needed !<BR/><BR/>Is there a way to remove the "X-ORACLE-IGNORE" stuuf at the top of the file ?Anonymousnoreply@blogger.com