Java simple code: java.net.SocketException: Unexpected end of file from server

后端 未结 8 1752
盖世英雄少女心
盖世英雄少女心 2020-12-01 10:23

I wrote some simple code in Java, the method should connect to the website and return the BufferedReader.

private BufferedReader getConnection(String url_a)          


        
8条回答
  •  Happy的楠姐
    2020-12-01 10:52

    In my case url contained wrong chars like spaces . Overall log your url and in some cases use browser.

提交回复
热议问题