Problem with java.net.URL  
Author Message
klynn47





PostPosted: 2005-1-11 11:06:00 Top

java-programmer, Problem with java.net.URL That response is from the URL you are trying to read. It's telling you
that it can't find the URL.

 
Ryan Stewart





PostPosted: 2005-1-12 9:14:00 Top

java-programmer >> Problem with java.net.URL <email***@***.com> wrote in message
news:email***@***.com...
> That response is from the URL you are trying to read. It's telling you
> that it can't find the URL.
>
Again, please have the courtesy to quote that to which you are replying.
Response code 500 is an internal server error, as it said in the original post.
404 is a not found error.

OP: Why are you setting doOutput to true?


 
toxa26





PostPosted: 2005-2-1 9:27:00 Top

java-programmer >> Problem with java.net.URL The 500 error means that the URL was found, but there is an error
executing rwservlet servlet. Looking at your URL, "/" character may
pose a problem. What happens is, when you access the URL via a
browser, modern browsers will actually escape all the "wierd"
characters for you. HttpURLConnection will make a raw GET request
sending whatever it is you are sending without processing. Try
escaping "/" and "@" ("@" shouldnt be a problem but just in case).