HTTP分析 - gmtalang/test GitHub Wiki
1.案例
`* Content-Type: multipart/form-data; boundary=AaB03x
- --AaB03x
- Content-Disposition: form-data; name="submit-name"
- Sally
- --AaB03x
- Content-Disposition: form-data; name="files"
- Content-Type: multipart/mixed; boundary=BbC04y
- --BbC04y
- Content-Disposition: file; filename="essayfile.txt"
- Content-Type: text/plain
- ...contents of essayfile.txt...
- --BbC04y
- Content-Disposition: file; filename="imagefile.gif"
- Content-Type: image/gif *** Content-Transfer-Encoding: binary**
- ...contents of imagefile.gif...
- --BbC04y--
- --AaB03x-- `
2.transfer encoding and chunk
`* GET /new_products.html HTTP/1.1
- Host: www.joes-hardware.com
- User-Agent: Mozilla/4.61 [en] (WinNT; I)
- TE: trailers, chunked`
HTTP/1.1 200 OK Transfer-Encoding: chunked Server: Apache/3.0