[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

problem using open-uri for loading from host:8080

Stephen Bannasch

7/23/2006 2:07:00 PM

open-uri (and the libraries it builds on) don't seem to be able to
load resources from hosts with alternate port numbers.

I 'm getting a OpenURI::HTTPError: 500 Internal Server Error when
using open-uri to load from the following location:

r = open('http://tels-develop.soe.berkeley.edu:8080/m...
pedagogica-emf.jnlp')

If instead I load it from a host without the 8080 port it works fine:

r = open('http://teemss.concord.org/testjnlp/pedagogica-emf...)

Any ideas on where the problem is?

For now I am working around this by using curl through a shell:

r = `curl -s http://tels-develop.soe.berkeley.edu:8080/m...
pedagogica-emf.jnlp`

-Stephen