Forum: Ruby Re: HTTP IO??

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
daniels (Guest)
on 2005-11-16 08:31
(Received via mailing list)
Well, I'd advise reading

http://redhanded.hobix.com/inspect/theStoryOfStrea...
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.
#####################################################################################
hsanson (Guest)
on 2005-11-16 08:55
(Received via mailing list)
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. ã?ã??はæ?¸ãã¾ã?ã?:
hsanson (Guest)
on 2005-11-16 08:55
(Received via mailing list)
Sorry,  also an usage example would be appreciated..

regards,
Horacio

Wednesday 16 November 2005 15:52ã?Horacio S. ã?ã??はæ?¸ãã¾ã?ã?:
This topic is locked and can not be replied to.