Re: [PatRat] Re: asyncHTTP vs IE file differences
On 8 Jul 2004, at 11:57, Matt Lewis wrote:
>
>
> posted by: Matt Lewis <matthewwalkerlewis at yahoo.com>
>
> Kat wrote:
> >
> >
> > At location 82464, asyncHTTP.ew changes an $0D$0A to $0D.....
> > I know there is a InsertCRLFs() function, but i did this modification in
> > example.exw to avoid that:
> >
> > procedure onRecieve(sequence url, sequence headers, sequence body)
> > junk = open("U:\\asynctest.jpg","wb")
> > puts(junk,body)
> > close(junk)
> > -- it's putz'd out before the InsertCRLFs() happens unto it
> > setText(Win,url)
> > setText(Result,InsertCRLFs(body))
> > end procedure
> >
> > Yes, i used puts(), it worked when i read in the correct sized file with
> > getc(), and puts()'d it back out to another file correctly. The only other
> > place asyncHTTP.ew is playing with "\n", it's not changing anything, and
> > it's
> > dealing only with the header. Right?
> >
> > Where is asyncHTTP dropping bytes?
>
> Interestingly, I count 12 "\n\r"s in the file, so that seems to be the
> culprit (ReplaceCRLFs in assyncHTTP.ew).
That made it worse! I did a simple:
function ReplaceCRLFs(sequence data)
atom loc
return data
and ran the code again, and got a filesize of 1,285,453 bytes. It should be
1,305,709 bytes.
Kat
|
Not Categorized, Please Help
|
|