Skip to content

Instantly share code, notes, and snippets.

View lavrovdv's full-sized avatar

Dmitry Lavrov lavrovdv

View GitHub Profile
@lavrovdv
lavrovdv / README.markdown
Created January 15, 2016 15:11 — forked from floehopper/README.markdown
Generate, send, receive, and parse a multipart/related HTTP POST request in Ruby

Setup Apache to listen on a port and log incoming HTTP requests including body

terminal 1

$ cat /etc/apache2/sites-enabled/mms-test 
Listen 50690
LogLevel debug
DumpIOInput On
# DumpIOOutput On

$ sudo tail -f /var/log/apache2/error.log | grep "mod_dumpio.c(74)" | sed "s/.*HEAP.: //"