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

后端 未结 8 1749
盖世英雄少女心
盖世英雄少女心 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条回答
  •  执笔经年
    2020-12-01 11:04

    I do get this error when I do not set the Authentication header or I set wrong credentials.

提交回复
热议问题