Re: [PatRat] Re: asyncHTTP vs IE file differences

new topic     » goto parent     » topic index » view thread      » older message » newer message

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).

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu