Skip to content

Instantly share code, notes, and snippets.

@rogerz
Created June 25, 2012 14:08
Show Gist options
  • Save rogerz/2988861 to your computer and use it in GitHub Desktop.
Save rogerz/2988861 to your computer and use it in GitHub Desktop.
Chrome file upload HTTP request
POST / HTTP/1.1
Host: ec2-23-20-227-204.compute-1.amazonaws.com:3000
Connection: keep-alive
Content-Length: 871
Cache-Control: max-age=0
Origin: http://ec2-23-20-227-204.compute-1.amazonaws.com:3000
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryUzEOlJ3ebRFRAGwv
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://ec2-23-20-227-204.compute-1.amazonaws.com:3000/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
------WebKitFormBoundaryUzEOlJ3ebRFRAGwv
Content-Disposition: form-data; name="title"
help
------WebKitFormBoundaryUzEOlJ3ebRFRAGwv
Content-Disposition: form-data; name="image"; filename="AUTHORS"
Content-Type: application/octet-stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment