如何上傳一個TXT檔至JSP的伺服器中 |
尚未結案
|
surprise1020
一般會員 發表:16 回覆:8 積分:4 註冊:2006-09-20 發送簡訊給我 |
想請問一下各位大大如何上傳一個檔案由JPS所建構的主機中 若單純只POST的話 上傳的資料只有如下 POST /fileupload/ HTTP/1.0
Host: localhost Accept: www/source, text/html, video/mpeg, image/jpeg, image/x-tiff Accept: image/x-rgb, image/x-xbm, image/gif, */*, application/postscript Content-type: application/x-www-form-urlencoded Content-Length: 76 002asdfasdfasdfa asdfasdfasdf asdfasdfasdf asdfasdf dasfasdfasdgterwyrju 而且上傳的資料夾中並無任何檔案 若有JSP的網頁上傳就可以 它的資料如下POST /fileupload/ HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Referer: http://localhost:8080/fileupload/ Accept-Language: zh-tw Content-Type: multipart/form-data; boundary=---------------------------7d62719c6063c Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; KKman3.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: localhost:8080 Content-Length: 468 Connection: Keep-Alive Cache-Control: no-cache Cookie: JSESSIONID=1E111AB5FE3DF5C04A1C0D321D3EAB6D -----------------------------7d62719c6063c Content-Disposition: form-data; name="desc" -----------------------------7d62719c6063c Content-Disposition: form-data; name="uploadfile"; filename="C:\test111.txt" Content-Type: text/plain 002asdfasdfasdfa asdfasdfasdf asdfasdfasdf asdfasdf dasfasdfasdgterwyrju -----------------------------7d62719c6063c Content-Disposition: form-data; name="doUpload" °送出 -----------------------------7d62719c6063c- 想請問一下這要怎麼解決 |
Ktop_Robot
站務副站長 發表:0 回覆:3511 積分:0 註冊:2007-04-17 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |