# Problem using open-uri for loading from host:8080

**URL:** <https://www.ruby-forum.com/t/problem-using-open-uri-for-loading-from-host-8080/99501>\
**Category:** Ruby\
**Created:** [July 23, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/problem-using-open-uri-for-loading-from-host-8080/99501 "2006-07-23T16:10:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stepheneb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Post date:** [July 23, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/problem-using-open-uri-for-loading-from-host-8080/99501/1 "2006-07-23T16:10:39Z")

</div>

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/](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(‘[Teemss2](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
