On 2005-03-30, Mark Stosberg <suppressed> wrote:
>
> With the right URL on the command line, I was able to download the file
> and run a diff. Here it is:
>
> $ diff -a old.pdf new.pdf
> 1c1
> < %PDF-1.3
> ---
> > 1.3
> 1182a1183
> > 1
> \ No newline at end of file
>
> I'll investigate these differences more.
The only thing I could find that seemed slightly odd in "::Stream" was
the printing of a null character at end of the file:
print ''; # print a null string at the end
I couldn't determine conclusively that part of my issue. It certainly doesn't explain
why '%PDF-' is missing.
Here an angle that someone else may want work on: I checked to see if ::Stream
has any tests that confirm that the file that's transmitted is the exactly the same
after the transmission.
It doesn't have a test like that. However, I stumbled immmediately when trying
to create one.
The tests tie STDOUT, and printing the current contents of STDOUT (via
$content_sent) doesn't contain the contents of the file.
Mark
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.