瀏覽器發送的資訊
POST / 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, */*
Accept-Language: zh-tw
Content-Type: multipart/form-data;
boundary=---------------------------7d8319307a0510
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Foxy/1; Avant
Browser; Foxy/1)
Content-Length: 7012
Connection: Keep-Alive
Cache-Control: no-cache
-----------------------------7d8319307a0510
Content-Disposition: form-data; name="file"; filename="C:\123.gif"
Content-Type: image/gif
Binary data在這裡
-----------------------------7d8319307a0510--
目前有幾個問題不知道該如何解決
1)可以用 WebBrowser.Navigate URL, Flags, TargetFrame, PostData, Headers
來上傳嗎?
2)上列的PostData及Headers是指
3)Content-Length的值怎麼計算的呢?
4)binary data 該怎麼處理,因為有成功上傳文字檔(TXT),但是JPG或是EXCEL這些
傳上去後下載回來,都無法正常開啟
希望有高手能夠幫幫我,或是有原始碼可以參考嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.123.137.137