URLConnection FileNotFoundException for non-standard HTTP port sources

后端 未结 8 962
野性不改
野性不改 2020-11-29 04:30

I was trying to use the Apache Ant Get task to get a list of WSDLs generated by another team in our company. They have them hosted on a weblogic 9.x server on http://....co

8条回答
  •  执念已碎
    2020-11-29 05:25

    I know this is an old thread but I found a solution not listed anywhere here.

    I was trying to pull data in json format from a J2EE servlet on port 8080 but was receiving the file not found error. I was able to pull this same json data from a php server running on port 80.

    It turns out that in the servlet, I needed to change doGet to doPost.

    Hope this helps somebody.

提交回复
热议问题