Re: [問題] 請問怎麼寫出最精簡的file upload?
不好意思 我問的沒有很清楚
我是想實作一個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
推
11/30 04:05, , 1F
11/30 04:05, 1F
推
11/30 04:45, , 2F
11/30 04:45, 2F
→
11/30 10:57, , 3F
11/30 10:57, 3F
討論串 (同標題文章)