Skip to content

Instantly share code, notes, and snippets.

@to016
Forked from rogerz/gist:2988861
Created September 24, 2023 05:39
Show Gist options
  • Save to016/567fabe831e3f0d765e6d6a57c72663c to your computer and use it in GitHub Desktop.
Save to016/567fabe831e3f0d765e6d6a57c72663c to your computer and use it in GitHub Desktop.
File upload HTTP request sample
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