看板 java 關於我們 聯絡資訊
不好意思 我問的沒有很清楚 我是想實作一個CLASS 可以發送 像下面的資訊給HTTP的網路空間 例子 http://tinyurl.com/637k9q POST register.jsp HTTP/1.1 Host: hi/iq User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 Accept-Language: en-us, en;q=0.50 Accept-Encoding: gzip, deflate, compress;q=0.9 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Content-Type: multipart/form-data; boundary=---------------------------29772313742745 Content-Length: 452 -----------------------------29772313742745 Content-Disposition: form-data; name="name" J.Doe -----------------------------29772313742745 Content-Disposition: form-data; name="email" abuse@spamcop.com -----------------------------29772313742745 Content-Disposition: form-data; name="file-upload"; filename="test.txt" Content-Type: text/plain test data with some high ascii: ¿Como estás? -----------------------------29772313742745-- -- I've become so numb I can't feel you there I've become so tired so much more aware Linkin Park - Numb -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.123.133.53
sukulu:看來我似乎誤會你的意思了@@ 11/30 04:05
pply:就用socket傳一段HTTP上傳檔案格式的資料到server就行了 11/30 04:45
ffrr:請問2樓有範例可以參考嗎? 11/30 10:57