org.apache.http.ProtocolException: Target host is not specified

后端 未结 3 1119
囚心锁ツ
囚心锁ツ 2021-01-17 07:22

I have written a simple httprequest/response code and I am getting this below error. I have referenced httpclient, httpcore, common-codecs and common-logging in my classpath

3条回答
  •  滥情空心
    2021-01-17 07:57

    This error is probably caused by the wrong url. Check the url:

    1. protocal missing;
    2. url parameters encode;

提交回复
热议问题