servlet直接接受request請求內容

        InputStream in =request.getInputStream();
        int len=0;
        String xmlRequest = "";
        byte[] buffer=new byte[1024];
        while((len=in.read(buffer))>0){
            xmlRequest=new String(buffer,0,len);
        }
發佈了21 篇原創文章 · 獲贊 0 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章