java.io.IOException: Server returns HTTP response code 505

前端 未结 5 947
北海茫月
北海茫月 2020-12-15 20:11

I have HTML based queries in my code and one specific kind seems to give rise to IOExceptions upon receiving 505 response from the server. I have looked up the

5条回答
  •  盖世英雄少女心
    2020-12-15 20:15

    @posdef I was having same HTTP error code 505 problem. When I pasted URL that I was using in Java code in Firefox, Chrome it worked. But through code was giving IOException. But at last I came to know that in url string there were brackets '(' and ')', by removing them it worked so it seems I needed URLEncodeing same like browsers.

提交回复
热议问题