Re: HTTP IO?


#1

Well, I’d advise reading

http://redhanded.hobix.com/inspect/theStoryOfStreamingHttpThroughMouseho
leWithSubsequentAdventuresInContinuationsAndDuckTyping.html

And using the code there for the HTTPIO object. It’s what works for
mousehole, which I’ve been using quite happily as my internet proxy, so
I guess that the HTTPIO object works.

Now the question is, what are you actually doing. Then we can probably
figure out what’s wrong. Now, _why’s code doesn’t make an actual IO
object - just one that looks sufficiently like an IO object for the
Webrick to be convinced to use the read method - he’s got a specific
use-case, and crammed the object to work in that situation. It probably
wont work in yours without further tweaking.

but stop at before reading the body of the page so I can read

Horacio

#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################


#2

Does a verbatim copy of this code work?? I really don’t understand what
it
does but that code gives me syntax errors

316: syntax error def read len = nil; … end

Horacio

Wednesday 16 November 2005 15:30ã?Daniel S. ã?ã??はæ?¸ãã¾ã?ã?:


#3

Sorry, also an usage example would be appreciated…

regards,
Horacio

Wednesday 16 November 2005 15:52ã?Horacio S. ã?ã??はæ?¸ãã¾ã?ã?: