problem using open-uri for loading from host:8080

S

Stephen Bannasch

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/maven-jnlp/
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.jnlp')

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/maven-jnlp/
pedagogica-emf.jnlp`

-Stephen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top