Skip to content

Instantly share code, notes, and snippets.

@shinyzhu
Created August 11, 2010 09:23
Show Gist options
  • Save shinyzhu/518734 to your computer and use it in GitHub Desktop.
Save shinyzhu/518734 to your computer and use it in GitHub Desktop.
HTTP mutilpart POST
POST http://172.21.120.186:8001/rest.aspx HTTP/1.1
Host: 172.21.120.186:8001
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://172.21.120.186:8001/upload.html
Content-Type: multipart/form-data; boundary=---------------------------24464570528145
Content-Length: 6773
-----------------------------24464570528145
Content-Disposition: form-data; name="status"
blablbalksjfalsdf
-----------------------------24464570528145
Content-Disposition: form-data; name="pic"; filename="ruler.gif"
Content-Type: image/gif
GIF89a...
-----------------------------24464570528145--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment