So, I have a customer using my GETURI tool. What it does (in case you're
not familiar) is makes a request to a web server, returning the results to a
file, stream file or the screen.
One customer reported that while grabbing an image from a web page, the CRLF
characters are actually being changed to x'08'. I thought this was odd, so
I ran some tests. Couldn't get it to happen.
Then I used their exact command. Sure enough, the headers were ended with
x'08' instead of x'0D0A'.
So I put my application in debug. It wrote the headers to the stream file
then I stopped at a breakpoint right before writing the rest to the stream
file. The headers ended in x'0D0A'... I stepped through to write the rest,
and now they were x'08'! Here's an example:
So I run some more tests. REturning to a PF and the CRLFs are fine.
My application can also take the header and write it to a separate file so
that the header isn't included in the actual "data" returned from the
server. I do that and the CRLFs are fine.
I am going to do some more debugging, but this only seems to happen on this
one particular request. Just wanted to see if anyone had any ideas of why
this would be happening... to me, it seems like a bug in the OS that
somehow got tripped doing everything exactly right. Then again, it may be a
bug on my end as well. :)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.