Dave Thomas <Dave / Thomases.com> writes:

> And, just to show how responsive the Ruby developers are, less than 24
> hours later, Minero Aoki checks in to the CVS tree a new net/http that 
> does just that

Ok, just a quick followup without checking the repository:

>        head = detail.data
>        if head.code == "301"
>          puts "Need to retry"
>          url = head['location']
>          url =~ %r{^http://([^/]+)(.*)}
>          host = $1
>          url = $2
>          port = 80

Is there support for retrieving the current port number from the http
response? I would much appreciate if there is.

        Roland