add a rack middleware to capture all requests data one by one, not good to use this in production yet
new version
change to use net http post multipart to upload file instead of curl
do profiling only when there is query string includes corn_profiling=true