Skip to content

Instantly share code, notes, and snippets.

@Bzek
Created March 5, 2011 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bzek/856430 to your computer and use it in GitHub Desktop.
Save Bzek/856430 to your computer and use it in GitHub Desktop.
POST /photo/upload?qqfile=555 HTTP/1.1
Host: 127.0.0.1:3000
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5, ru
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-File-Name: 555
Content-Type: application/octet-stream
Referer: http://127.0.0.1:3000/
Content-Length: 102444
X-Behavioral-Ad-Opt-Out: 1
X-Do-Not-Track: 1
Pragma: no-cache
Cache-Control: no-cache
content is here...1234jljlflkll2134k234244
$self->req->headers->content_length is right, but $self->req->headers->leftovers returns only 56kb. So how to get a full content?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment