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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
problem using open-uri for loading from host:8080
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password