[問題]file upload 的 http header

看板Web_Design作者 (北極熊)時間15年前 (2008/11/06 11:36), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我試著用java Socket做http fileupload 收到client端 透過form傳過來的Stream //-- POST /upload.jsp HTTP/1.1 Accept: */* Referer: http://127.0.0.1/upload.html Accept-Language: zh-tw Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Host: 127.0.0.1 Content-Length: 34 Connection: Keep-Alive Cache-Control: no-cache text1=value1&file1=C%3A%5Ctest.jpg //-- 請問 我該傳什麼東西回去給client端 才能拿到檔案的Stream 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.17.66

11/06 13:57, , 1F
<form enctype="multipart/form-data"...
11/06 13:57, 1F
文章代碼(AID): #194cOvWD (Web_Design)